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 #523 from IxDay/fix-debug-flag
Browse files Browse the repository at this point in the history
Fix --debug flag
  • Loading branch information
frankscholten authored Jan 22, 2017
2 parents 4b58e86 + fffa391 commit 445cc84
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cli/src/main/java/com/containersol/minimesos/main/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,9 @@ private void parseParams(JCommander jc, String[] args) {

private static void initializeDebugLogging() {
LoggerContext loggerContext = (LoggerContext) LoggerFactory.getILoggerFactory();
ch.qos.logback.classic.Logger rootLogger = loggerContext.getLogger("com.containersol.minimesos.container");
ch.qos.logback.classic.Logger rootLogger = (
loggerContext.getLogger("com.containersol.minimesos")
);
rootLogger.setLevel(Level.DEBUG);
LOGGER.debug("Initialized debug logging");
}
Expand Down
2 changes: 1 addition & 1 deletion minimesos/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</encoder>
</appender>

<logger name="com.containersol.minimesos.main" level="info">
<logger name="com.containersol.minimesos" level="info">
<appender-ref ref="CLI"/>
</logger>

Expand Down

0 comments on commit 445cc84

Please sign in to comment.