Skip to content

Commit

Permalink
nettoyage
Browse files Browse the repository at this point in the history
  • Loading branch information
khergalant committed Sep 5, 2024
1 parent c3fc150 commit d9fa6a4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/main/java/fr/univlorraine/ecandidat/Initializer.java
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ public void sessionDestroyed(final HttpSessionEvent httpSessionEvent) {
/* Configure Spring */
final AnnotationConfigWebApplicationContext springContext = new AnnotationConfigWebApplicationContext();
final String logMode = servletContext.getInitParameter("logMode");
System.out.println("Initializer : " + logMode);
if (logMode != null && logMode.startsWith(TRACE_PROFILE)) {
springContext.getEnvironment().setActiveProfiles(logMode);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,14 @@ public void start() {
logMode = contextLogMode;
}

System.out.println("LoggerStartupListener contextLogMode: " + contextLogMode);
System.out.println("LoggerStartupListener logMode: " + logMode);

/* Si un fichier de properties est fourni, on récupère la valeur de logMode */
final Properties properties = MethodUtils.loadPropertieFile();
final String logModeProp = properties.getProperty(PROPERTY_LOG_MODE);

System.out.println("LoggerStartupListener properties: " + properties);
System.out.println("LoggerStartupListener logModeProp: " + logModeProp);

if (isValidLogMode(logModeProp)) {
logMode = logModeProp;
}
context.putProperty("LOG_MODE", logMode);
System.out.println("LoggerStartupListener logMode: " + logMode);

super.start();
}
Expand Down

0 comments on commit d9fa6a4

Please sign in to comment.