cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject git commit: Downgrade loglevel for regular requests
Date Wed, 02 Jul 2014 18:58:53 GMT
Repository: cxf
Updated Branches:
  refs/heads/master c0d434e8d -> 59a152454


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/59a15245
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/59a15245
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/59a15245

Branch: refs/heads/master
Commit: 59a1524546d6c9767b69897f30c119fe81446885
Parents: c0d434e
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: Wed Jul 2 14:58:17 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/59a15245/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 4522512..0342e9e 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
@@ -146,7 +146,7 @@ public class OAuthRequestFilter extends AbstractAccessTokenValidator
         }
         if (!foundValidScope) {
             String message = "Invalid request URI: " + request.getRequestURL().toString();
-            LOG.warning(message);
+            LOG.fine(message);
         }
         return foundValidScope;
     }


Mime
View raw message