← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 17999: CORS filter, reduced log level

 

------------------------------------------------------------
revno: 17999
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2015-01-15 10:42:55 +0100
message:
  CORS filter, reduced log level
modified:
  dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/filter/CorsFilter.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/filter/CorsFilter.java'
--- dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/filter/CorsFilter.java	2015-01-14 10:59:10 +0000
+++ dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/filter/CorsFilter.java	2015-01-15 09:42:55 +0000
@@ -52,7 +52,7 @@
  */
 public class CorsFilter implements Filter
 {
-    private static final Log LOG = LogFactory.getLog( CorsFilter.class );
+    private static final Log log = LogFactory.getLog( CorsFilter.class );
 
     public static final String CORS_ALLOW_CREDENTIALS = "Access-Control-Allow-Credentials";
 
@@ -96,7 +96,7 @@
 
         if ( !isOriginWhitelisted( request, origin ) )
         {
-            LOG.warn( "CORS request with origin " + origin + " is not whitelisted." );
+            log.debug( "CORS request with origin " + origin + " is not whitelisted" );
             filterChain.doFilter( request, response );
             return;
         }