1. Jens Reimann
  2. org.openscada.orilla

Commits

Jens Reimann  committed c471538

tweak logging

  • Participants
  • Parent commits d3a4f29
  • Branches 1.2

Comments (0)

Files changed (1)

File org.openscada.ca.ui.importer/src/org/openscada/ca/ui/importer/wizard/ImportWizard.java

View file
  • Ignore whitespace
 import java.util.concurrent.ExecutionException;
 
 import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
 import org.eclipse.core.runtime.SubMonitor;
 import org.eclipse.jface.dialogs.IDialogSettings;
 import org.eclipse.jface.operation.IRunnableWithProgress;
 import org.openscada.ca.ui.util.DiffController;
 import org.openscada.sec.ui.DisplayCallbackHandler;
 import org.openscada.ui.databinding.AdapterHelper;
+import org.openscada.ui.utils.status.StatusHelper;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 import com.google.common.collect.Iterables;
 
 public class ImportWizard extends Wizard implements IImportWizard
 {
 
+    private final static Logger logger = LoggerFactory.getLogger ( ImportWizard.class );
+
     private ConnectionService connection;
 
     private final DiffController mergeController;
         }
         catch ( final Exception e )
         {
-            final Status status = new Status ( IStatus.ERROR, Activator.PLUGIN_ID, Messages.ImportWizard_StatusErrorFailedToApply, e );
-            StatusManager.getManager ().handle ( status, StatusManager.BLOCK );
+            logger.warn ( "Failed to import", e );
+            StatusManager.getManager ().handle ( StatusHelper.convertStatus ( Activator.PLUGIN_ID, Messages.ImportWizard_StatusErrorFailedToApply, e ), StatusManager.BLOCK );
             return false;
         }
     }