Skip to content
Snippets Groups Projects
Commit 068b8aa8 authored by cramakri's avatar cramakri
Browse files

LMS-1564 Added debugging to the DSS client.

SVN: 16332
parent 4bfdbc7f
No related branches found
No related tags found
No related merge requests found
......@@ -45,13 +45,35 @@ import ch.systemsx.cisd.common.utilities.SystemExit;
*/
public class DssClient
{
private final static boolean ENABLE_LOGGING = false;
static
{
// Disable any logging output.
if (ENABLE_LOGGING)
enableDebugLogging();
else
disableLogging();
}
private static void disableLogging()
{
System.setProperty("org.apache.commons.logging.Log",
"org.apache.commons.logging.impl.NoOpLog");
}
private static void enableDebugLogging()
{
// Log protocol information -- for debugging only
System.setProperty("org.apache.commons.logging.Log",
"org.apache.commons.logging.impl.SimpleLog");
System.setProperty("org.apache.commons.logging.simplelog.showdatetime", "true");
System.setProperty("org.apache.commons.logging.simplelog.log.httpclient.wire.header",
"debug");
System.setProperty(
"org.apache.commons.logging.simplelog.log.org.apache.commons.httpclient", "debug");
}
private CommandFactory commandFactory;
private final IExitHandler exitHandler;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment