cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [3/4] git commit: Downgrade loglevel for regular requests
Date Mon, 14 Jul 2014 14:57:28 GMT
Downgrade loglevel for regular requests

Every request, even if successful, results in many warning entries, alerting developer unnecessarily.
This modification downgrades log level to "fine", like in "checkHttpVerb" method. So, regular
and authorized requests do not increase log file with WARNS.

This closes #2

Signed-off-by: Daniel Kulp <dkulp@apache.org>


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

Branch: refs/heads/2.7.x-fixes
Commit: ee86e43a482378d76ceeb629d72f496b27869149
Parents: 48a8a15
Author: Ibraim Rodrigues da Silva Medina <ibraim@thau.com.br>
Authored: Thu Apr 10 19:24:26 2014 -0300
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Mon Jul 14 10:55:56 2014 -0400

----------------------------------------------------------------------
 .../apache/cxf/rs/security/oauth2/filters/OAuthRequestFilter.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/ee86e43a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/filters/OAuthRequestFilter.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/filters/OAuthRequestFilter.java
b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/filters/OAuthRequestFilter.java
index 1ef2f7d..39d3f17 100644
--- a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/filters/OAuthRequestFilter.java
+++ b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/filters/OAuthRequestFilter.java
@@ -144,7 +144,7 @@ public class OAuthRequestFilter extends AbstractAccessTokenValidator implements
         }
         if (!foundValidScope) {
             String message = "Invalid request URI: " + request.getRequestURL().toString();
-            LOG.warning(message);
+            LOG.fine(message);
         }
         return foundValidScope;
     }


Mime
View raw message