← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 5390: Clean up

 

------------------------------------------------------------
revno: 5390
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2011-12-13 16:58:02 +0100
message:
  Clean up
modified:
  dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/message/DefaultMessageService.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/message/DefaultMessageService.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/message/DefaultMessageService.java	2011-12-10 12:23:49 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/message/DefaultMessageService.java	2011-12-13 15:58:02 +0000
@@ -82,12 +82,7 @@
     {
         this.messageSenders = messageSenders;
 
-        String message = "Found the following message senders: ";
-        for ( MessageSender messageSender : messageSenders )
-        {
-            message += messageSender.getClass().getSimpleName() + ", ";
-        }
-        log.info( message.substring( 0, message.length() - 2 ) );
+        log.info( "Found the following message senders: " + messageSenders );        
     }
     
     // -------------------------------------------------------------------------
@@ -224,9 +219,6 @@
     {
         for ( MessageSender messageSender : messageSenders )
         {
-            if (log.isDebugEnabled())
-                log.debug( "Invoking message sender " + messageSender.getClass().getSimpleName() );
-
             messageSender.sendMessage( subject, text, sender, users );
         }
     }