sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chet...@apache.org
Subject [sling-org-apache-sling-tracer] branch master updated: SLING-7583 - Log tracer runs into ClassCastException for oak-queries
Date Wed, 18 Apr 2018 08:18:57 GMT
This is an automated email from the ASF dual-hosted git repository.

chetanm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-tracer.git


The following commit(s) were added to refs/heads/master by this push:
     new ee13d5c  SLING-7583 - Log tracer runs into ClassCastException for oak-queries
ee13d5c is described below

commit ee13d5caf8ef714bcd2ad51d4ae414ccfbb37946
Author: Chetan Mehrotra <chetanm@apache.org>
AuthorDate: Wed Apr 18 13:48:44 2018 +0530

    SLING-7583 - Log tracer runs into ClassCastException for oak-queries
    
    Fix as per suggestion from Dirk
---
 src/main/java/org/apache/sling/tracer/internal/TracerContext.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/tracer/internal/TracerContext.java b/src/main/java/org/apache/sling/tracer/internal/TracerContext.java
index 0474662..a3e1b3e 100644
--- a/src/main/java/org/apache/sling/tracer/internal/TracerContext.java
+++ b/src/main/java/org/apache/sling/tracer/internal/TracerContext.java
@@ -89,7 +89,7 @@ class TracerContext {
         FormattingTuple tuple = null;
         if (QUERY_LOGGER.equals(logger)
                 && params != null && params.length == 2) {
-            if (logQuery((String) params[1])){
+            if (logQuery(String.valueOf(params[1]))){
                 //Get original log message
                 tuple = logWithLoggerName(logger, format, params);
             }

-- 
To stop receiving notification emails like this one, please contact
chetanm@apache.org.

Mime
View raw message