Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Tiede2012-11-16 08:31:58 -0500
committerMarkus Tiede2012-11-16 08:31:58 -0500
commitb1c1198552e8ce4a36dd8e8b383d301c8c3c4f62 (patch)
tree9bf182f42d7ed31ac00703e77866b19de5103fed /org.eclipse.jubula.autagent
parent067f3d819cd1ca6a661027a657de5c62432b2344 (diff)
downloadorg.eclipse.jubula.core-b1c1198552e8ce4a36dd8e8b383d301c8c3c4f62.tar.gz
org.eclipse.jubula.core-b1c1198552e8ce4a36dd8e8b383d301c8c3c4f62.tar.xz
org.eclipse.jubula.core-b1c1198552e8ce4a36dd8e8b383d301c8c3c4f62.zip
Non-sprint task - unified logging.
Diffstat (limited to 'org.eclipse.jubula.autagent')
-rw-r--r--org.eclipse.jubula.autagent/src/org/eclipse/jubula/autagent/commands/StartAUTServerCommand.java11
-rw-r--r--org.eclipse.jubula.autagent/src/org/eclipse/jubula/autagent/monitoring/AbstractMonitoring.java3
2 files changed, 6 insertions, 8 deletions
diff --git a/org.eclipse.jubula.autagent/src/org/eclipse/jubula/autagent/commands/StartAUTServerCommand.java b/org.eclipse.jubula.autagent/src/org/eclipse/jubula/autagent/commands/StartAUTServerCommand.java
index 37cb3bf87..dbbd527cd 100644
--- a/org.eclipse.jubula.autagent/src/org/eclipse/jubula/autagent/commands/StartAUTServerCommand.java
+++ b/org.eclipse.jubula.autagent/src/org/eclipse/jubula/autagent/commands/StartAUTServerCommand.java
@@ -18,7 +18,6 @@ import org.eclipse.jubula.communication.message.Message;
import org.eclipse.jubula.communication.message.StartAUTServerMessage;
import org.eclipse.jubula.communication.message.StartAUTServerStateMessage;
import org.eclipse.jubula.tools.constants.AutConfigConstants;
-import org.eclipse.jubula.tools.constants.DebugConstants;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -116,27 +115,27 @@ public class StartAUTServerCommand implements ICommand {
return autStarter.startAut(m_message.getAutConfiguration());
} catch (IllegalArgumentException iae) {
- log.error(DebugConstants.ERROR, iae);
+ log.error(iae.getLocalizedMessage(), iae);
return new StartAUTServerStateMessage(
StartAUTServerStateMessage.EXECUTION,
iae.getMessage());
} catch (NullPointerException npe) {
- log.error(DebugConstants.ERROR, npe);
+ log.error(npe.getLocalizedMessage(), npe);
return new StartAUTServerStateMessage(
StartAUTServerStateMessage.DATA,
npe.getMessage());
} catch (SecurityException se) {
- log.error("security violation", se); //$NON-NLS-1$
+ log.error(se.getLocalizedMessage(), se);
return new StartAUTServerStateMessage(
StartAUTServerStateMessage.SECURITY,
"security violation:" + se.getMessage()); //$NON-NLS-1$
} catch (IOException ioe) {
- log.error("could not start AUTServer", ioe); //$NON-NLS-1$
+ log.error("Could not start AUTServer", ioe); //$NON-NLS-1$
return new StartAUTServerStateMessage(
StartAUTServerStateMessage.IO,
ioe.getMessage());
} catch (ClassNotFoundException cnfe) {
- log.error("could not find class for AUTServer", cnfe); //$NON-NLS-1$
+ log.error("Could not find class for AUTServer", cnfe); //$NON-NLS-1$
return new StartAUTServerStateMessage(
StartAUTServerStateMessage.NO_SERVER_CLASS,
cnfe.getMessage());
diff --git a/org.eclipse.jubula.autagent/src/org/eclipse/jubula/autagent/monitoring/AbstractMonitoring.java b/org.eclipse.jubula.autagent/src/org/eclipse/jubula/autagent/monitoring/AbstractMonitoring.java
index 8236ca497..5fff549f3 100644
--- a/org.eclipse.jubula.autagent/src/org/eclipse/jubula/autagent/monitoring/AbstractMonitoring.java
+++ b/org.eclipse.jubula.autagent/src/org/eclipse/jubula/autagent/monitoring/AbstractMonitoring.java
@@ -16,7 +16,6 @@ import java.io.OutputStream;
import java.util.HashMap;
import java.util.Map;
-import org.eclipse.jubula.tools.constants.DebugConstants;
import org.eclipse.jubula.tools.objects.IMonitoringValue;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -56,7 +55,7 @@ public abstract class AbstractMonitoring implements IMonitoring {
try {
out.close();
} catch (IOException e) {
- LOG.error(DebugConstants.ERROR, e);
+ LOG.error(e.getLocalizedMessage(), e);
}
}

Back to the top