← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 20618: Log level

 

------------------------------------------------------------
revno: 20618
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Sun 2015-10-11 23:37:44 +0200
message:
  Log level
modified:
  dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataapproval/DefaultDataApprovalService.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-services/dhis-service-core/src/main/java/org/hisp/dhis/dataapproval/DefaultDataApprovalService.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataapproval/DefaultDataApprovalService.java	2015-09-16 18:31:45 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataapproval/DefaultDataApprovalService.java	2015-10-11 21:37:44 +0000
@@ -151,7 +151,7 @@
 
             if ( status == null || !status.getPermissions().isMayApprove() )
             {
-                log.warn( "approveData: data may not be approved, state " +
+                log.info( "approveData: data may not be approved, state " +
                     ( status == null ? "(null)" : status.getState().name() ) + " " + da );
 
                 throw new DataMayNotBeApprovedException();
@@ -159,7 +159,7 @@
 
             if ( da.getOrganisationUnit().getLevel() != da.getDataApprovalLevel().getOrgUnitLevel() )
             {
-                log.warn( "approveData: org unit " + da.getOrganisationUnit().getUid() + " '" + da.getOrganisationUnit().getName() +
+                log.info( "approveData: org unit " + da.getOrganisationUnit().getUid() + " '" + da.getOrganisationUnit().getName() +
                     "' has wrong org unit level " + da.getOrganisationUnit().getLevel() +
                     " for approval level " + da.getDataApprovalLevel().getLevel());
 
@@ -201,7 +201,7 @@
 
             if ( status == null || !status.getPermissions().isMayUnapprove() )
             {
-                log.warn( "unapproveData: data may not be unapproved, state " + ( status == null ? "(null)" : status.getState().name() ) + " " + da );
+                log.info( "unapproveData: data may not be unapproved, state " + ( status == null ? "(null)" : status.getState().name() ) + " " + da );
 
                 throw new DataMayNotBeUnapprovedException();
             }
@@ -264,7 +264,7 @@
 
             if ( status == null || !status.getPermissions().isMayAccept() )
             {
-                log.warn( "acceptData: data may not be accepted, state " + ( status == null ? "(null)" : status.getState().name() ) + " " + da );
+                log.info( "acceptData: data may not be accepted, state " + ( status == null ? "(null)" : status.getState().name() ) + " " + da );
 
                 throw new DataMayNotBeAcceptedException();
             }
@@ -283,7 +283,7 @@
 
             if ( d == null )
             {
-                log.warn( "acceptData: approval not found at " + da );
+                log.info( "acceptData: approval not found at " + da );
 
                 throw new DataMayNotBeAcceptedException();
             }
@@ -324,7 +324,7 @@
 
             if ( !status.getPermissions().isMayUnaccept() )
             {
-                log.warn( "unacceptData: data may not be unaccepted, state " + status.getState().name() + " " + da + " " + status.getPermissions() );
+                log.info( "unacceptData: data may not be unaccepted, state " + status.getState().name() + " " + da + " " + status.getPermissions() );
 
                 throw new DataMayNotBeUnacceptedException();
             }
@@ -341,7 +341,7 @@
 
             if ( d == null )
             {
-                log.warn( "unacceptData: approval not found at " + da );
+                log.info( "unacceptData: approval not found at " + da );
 
                 throw new DataMayNotBeUnacceptedException();
             }