ref #9851: change logger in UpdateHandler
authorKatja Luther <k.luther@bgbm.org>
Thu, 9 Dec 2021 09:50:16 +0000 (10:50 +0100)
committerKatja Luther <k.luther@bgbm.org>
Thu, 9 Dec 2021 09:50:16 +0000 (10:50 +0100)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/handler/update/UpdateHandler.java

index 1cf696cbc6664cef3f1339e81711c913ad638744..7f5a308b7970967a48c01d39044a4eca80c9e4b8 100644 (file)
@@ -102,7 +102,7 @@ public class UpdateHandler {
 
         // configure update operation
         final ProvisioningSession session = new ProvisioningSession(agent);
-        MessagingUtils.info("Try to get updates" + System.currentTimeMillis());
+        logger.info("Try to get updates" + System.currentTimeMillis());
         try{
                operation = new UpdateOperation(session);               
                configureUpdate(operation);       
@@ -113,9 +113,9 @@ public class UpdateHandler {
                    showMessage(shell, sync);
                    return Status.CANCEL_STATUS;
                }
-               MessagingUtils.info("update resolved " + System.currentTimeMillis() + "Status: " + status.toString());
+               logger.info("update resolved " + System.currentTimeMillis() + "Status: " + status.toString());
         }catch(Exception e){
-               MessagingUtils.warn(this.getClass(), e.getStackTrace().toString());
+               logger.warn( e.getStackTrace().toString());
                return Status.CANCEL_STATUS;
         }