Skip to content

Commit

Permalink
adjust log level; this keeps ant test quieter
Browse files Browse the repository at this point in the history
  • Loading branch information
cygri committed Feb 28, 2012
1 parent 979d893 commit bf8a86b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/de/fuberlin/wiwiss/d2rq/sql/ConnectedDB.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.Types;
import java.util.*;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;
import java.util.regex.Pattern;

import org.apache.commons.logging.Log;
Expand Down Expand Up @@ -115,7 +121,7 @@ public void run() {
}
}

log.info("Keep alive agent terminated.");
log.debug("Keep alive agent terminated.");
}

public void shutdown() {
Expand Down Expand Up @@ -167,7 +173,7 @@ public ConnectedDB(String jdbcURL, String username, String password,
this.keepAliveAgent = new KeepAliveAgent(interval, query);
this.keepAliveAgent.start();
Runtime.getRuntime().addShutdownHook(shutdownHook);
log.info("Keep alive agent is enabled (interval: " + interval + " seconds, noop query: '" + query + "').");
log.debug("Keep alive agent is enabled (interval: " + interval + " seconds, noop query: '" + query + "').");
} else
this.keepAliveAgent = null;
}
Expand Down

0 comments on commit bf8a86b

Please sign in to comment.