Skip to content

Commit

Permalink
Merge pull request #1667 from provenceee/fix-log-develop
Browse files Browse the repository at this point in the history
Fix DefaultAdviser log
  • Loading branch information
Sherlockhan authored Nov 18, 2024
2 parents f6f66b0 + 9a98003 commit 7b2d7f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ public static void install(String artifact, Map<String, Object> argsMap, Instrum
agentType = AgentType.AGENTMAIN.getValue();
}
artifactCache = artifact;
adviserCache = new DefaultAdviser();

// Initialize default logs to ensure log availability before loading the log engine
LoggerFactory.initDefaultLogger(artifact);
adviserCache = new DefaultAdviser();

// Initialize the classloader of framework
ClassLoaderManager.init(argsMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public static Logger getLogger() {
if (defaultLogger == null) {
synchronized (LoggerFactory.class) {
if (defaultLogger == null) {
defaultLogger = java.util.logging.Logger.getLogger("sermant");
defaultLogger = java.util.logging.Logger.getLogger("sermant.default");
}
}
}
Expand Down

0 comments on commit 7b2d7f8

Please sign in to comment.