You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2015/09/16 17:18:39 UTC
[2/8] jena git commit: Show direction of headers in detailed logging.
Show direction of headers in detailed logging.
Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/c3cacca7
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/c3cacca7
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/c3cacca7
Branch: refs/heads/master
Commit: c3cacca731fce8ca1587224fef181faf66b14973
Parents: b722fff
Author: Andy Seaborne <an...@apache.org>
Authored: Tue Sep 15 20:37:56 2015 +0100
Committer: Andy Seaborne <an...@apache.org>
Committed: Tue Sep 15 20:37:56 2015 +0100
----------------------------------------------------------------------
.../java/org/apache/jena/fuseki/servlets/ActionBase.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/jena/blob/c3cacca7/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/servlets/ActionBase.java
----------------------------------------------------------------------
diff --git a/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/servlets/ActionBase.java b/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/servlets/ActionBase.java
index 7327aa2..bb0c6e2 100644
--- a/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/servlets/ActionBase.java
+++ b/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/servlets/ActionBase.java
@@ -201,10 +201,10 @@ public abstract class ActionBase extends ServletBase
String h = en.nextElement() ;
Enumeration<String> vals = action.request.getHeaders(h) ;
if ( !vals.hasMoreElements() )
- log.info(format("[%d] %s", action.id, h)) ;
+ log.info(format("[%d] => %s", action.id, h+":")) ;
else {
for (; vals.hasMoreElements();)
- log.info(format("[%d] %-20s %s", action.id, h, vals.nextElement())) ;
+ log.info(format("[%d] => %-20s %s", action.id, h+":", vals.nextElement())) ;
}
}
}
@@ -224,11 +224,11 @@ public abstract class ActionBase extends ServletBase
HttpServletResponseTracker response = action.response ;
if ( action.verbose ) {
if ( action.contentType != null )
- log.info(format("[%d] %-20s %s", action.id, HttpNames.hContentType, action.contentType)) ;
+ log.info(format("[%d] <= %-20s %s", action.id, HttpNames.hContentType+":", action.contentType)) ;
if ( action.contentLength != -1 )
- log.info(format("[%d] %-20s %d", action.id, HttpNames.hContentLengh, action.contentLength)) ;
+ log.info(format("[%d] <= %-20s %d", action.id, HttpNames.hContentLengh+":", action.contentLength)) ;
for (Map.Entry<String, String> e : action.headers.entrySet())
- log.info(format("[%d] %-20s %s", action.id, e.getKey(), e.getValue())) ;
+ log.info(format("[%d] <= %-20s %s", action.id, e.getKey()+":", e.getValue())) ;
}
String timeStr = fmtMillis(time) ;