File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed
src/main/java/fr/univlorraine/ecandidat Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -129,6 +129,7 @@ public void sessionDestroyed(final HttpSessionEvent httpSessionEvent) {
129
129
/* Configure Spring */
130
130
final AnnotationConfigWebApplicationContext springContext = new AnnotationConfigWebApplicationContext ();
131
131
final String logMode = servletContext .getInitParameter ("logMode" );
132
+ System .out .println ("Initializer : " + logMode );
132
133
if (logMode != null && logMode .startsWith (TRACE_PROFILE )) {
133
134
springContext .getEnvironment ().setActiveProfiles (logMode );
134
135
}
Original file line number Diff line number Diff line change @@ -49,13 +49,21 @@ public void start() {
49
49
logMode = contextLogMode ;
50
50
}
51
51
52
+ System .out .println ("LoggerStartupListener contextLogMode: " + contextLogMode );
53
+ System .out .println ("LoggerStartupListener logMode: " + logMode );
54
+
52
55
/* Si un fichier de properties est fourni, on récupère la valeur de logMode */
53
56
final Properties properties = MethodUtils .loadPropertieFile ();
54
57
final String logModeProp = properties .getProperty (PROPERTY_LOG_MODE );
58
+
59
+ System .out .println ("LoggerStartupListener properties: " + properties );
60
+ System .out .println ("LoggerStartupListener logModeProp: " + logModeProp );
61
+
55
62
if (isValidLogMode (logModeProp )) {
56
63
logMode = logModeProp ;
57
64
}
58
65
context .putProperty ("LOG_MODE" , logMode );
66
+ System .out .println ("LoggerStartupListener logMode: " + logMode );
59
67
60
68
super .start ();
61
69
}
Original file line number Diff line number Diff line change @@ -1373,8 +1373,10 @@ public static Properties loadPropertieFile() {
1373
1373
final Properties properties = new Properties ();
1374
1374
try {
1375
1375
final String systemFilePropertiesPath = System .getProperty (ConstanteUtils .PROPERTY_FILE_PATH );
1376
+ System .out .println ("loadPropertieFile " + systemFilePropertiesPath );
1376
1377
if (StringUtils .isNotBlank (systemFilePropertiesPath )) {
1377
1378
final File fileConfig = new File (systemFilePropertiesPath );
1379
+ System .out .println ("loadPropertieFile " + fileConfig );
1378
1380
if (fileConfig .exists () && fileConfig .isFile ()) {
1379
1381
try (FileInputStream file = new FileInputStream (fileConfig )) {
1380
1382
properties .load (file );
You can’t perform that action at this time.
0 commit comments