jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [05/24] jena git commit: Better version output.
Date Tue, 27 Feb 2018 23:10:25 GMT
Better version output.

Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/036491f7
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/036491f7
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/036491f7

Branch: refs/heads/master
Commit: 036491f75dca0ae28b92f99552e354cb03d587c1
Parents: fc3c3c2
Author: Andy Seaborne <andy@apache.org>
Authored: Tue Feb 20 13:55:25 2018 +0000
Committer: Andy Seaborne <andy@apache.org>
Committed: Tue Feb 20 13:55:25 2018 +0000

----------------------------------------------------------------------
 .../java/org/apache/jena/fuseki/servlets/SPARQL_Query.java   | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/036491f7/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/servlets/SPARQL_Query.java
----------------------------------------------------------------------
diff --git a/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/servlets/SPARQL_Query.java
b/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/servlets/SPARQL_Query.java
index be465ef..278b904 100644
--- a/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/servlets/SPARQL_Query.java
+++ b/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/servlets/SPARQL_Query.java
@@ -237,8 +237,12 @@ public abstract class SPARQL_Query extends SPARQL_Protocol
 
     protected void execute(String queryString, HttpAction action) {
         String queryStringLog = ServletOps.formatForLog(queryString) ;
-        if ( action.verbose )
-            action.log.info(format("[%d] Query = \n%s", action.id, queryString)) ;
+        if ( action.verbose ) {
+            String str = queryString;
+            if ( str.endsWith("\n") )
+                str = str.substring(0, str.length()-1);
+            action.log.info(format("[%d] Query = \n%s", action.id, str)) ;
+        }
         else
             action.log.info(format("[%d] Query = %s", action.id, queryStringLog)) ;
 


Mime
View raw message