Skip to content

Commit

Permalink
Use parameter placeholders when logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsyrjala committed Aug 20, 2014
1 parent 7c377a1 commit 7d85811
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ private WorkflowInstance saveWorkflowInstanceState(StateExecutionImpl execution,
execution.setNextActivation(null);
}
if (definition.getMethod(execution.getNextState()) == null && execution.getNextActivation() != null) {
logger.info("No handler method defined for " + execution.getNextState() + ", clearing next activation");
logger.info("No handler method defined for {}, clearing next activation", execution.getNextState());
execution.setNextActivation(null);
}
WorkflowInstance.Builder builder = new WorkflowInstance.Builder(instance)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ protected DatabaseConfiguration(String dbType) {
@Bean(name="nflow-datasource")
public DataSource datasource(Environment env) {
String url = property(env, "url");
logger.info("Database connection to " + dbType + " using " + url);
logger.info("Database connection to {} using {}", dbType, url);
HikariConfig config = new HikariConfig();
config.setDataSourceClassName(property(env, "driver"));
config.addDataSourceProperty("url", url);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ public JettyServerContainer startJetty(Map<String, Object> properties) throws Ex
JettyServerContainer startedServer = new JettyServerContainer(server);
port = startedServer.getPort();
logger.info("Successfully started Jetty on port {} in {} seconds in environment {}", port, (end - start) / 1000.0, Arrays.toString(env.getActiveProfiles()));
logger.info("API available at http://" + host + ":" + port + "/");
logger.info("API doc available at http://" + host + ":" + port + "/ui");
logger.info("API available at http://{}:{}/", host, port);
logger.info("API doc available at http://{}:{}/ui", host, port);
return startedServer;
}

Expand Down

0 comments on commit 7d85811

Please sign in to comment.