Skip to content
This repository has been archived by the owner on Jun 22, 2018. It is now read-only.

Commit

Permalink
Merge pull request #406 from ContainerSolutions/bug/379-npe-on-exception
Browse files Browse the repository at this point in the history
fixes #379. NPE in Main on exception
  • Loading branch information
remmelt committed Apr 21, 2016
2 parents de76c35 + f106be1 commit f43576a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public void start(int timeout) {
throw new MinimesosException(errorMessage + " See container logs above");
}

LOGGER.debug("Container is up and running");
LOGGER.debug(String.format("Container %s is up and running", containerId));
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class Main {
private boolean help = false;

@Parameter(names = "--debug", description = "Enable debug logging.")
private Boolean debug = null;
private boolean debug = false;

private PrintStream output = System.out;

Expand Down Expand Up @@ -91,7 +91,7 @@ public int run(String[] args) {
return EXIT_CODE_OK;
}

if (debug != null) {
if (debug) {
LoggerContext loggerContext = (LoggerContext) LoggerFactory.getILoggerFactory();
ch.qos.logback.classic.Logger rootLogger = loggerContext.getLogger("com.containersol.minimesos.container");
rootLogger.setLevel(Level.DEBUG);
Expand Down

0 comments on commit f43576a

Please sign in to comment.