File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
src/main/java/com/ericsson/ei/frontend/config Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
1
package com .ericsson .ei .frontend .config ;
2
2
3
- import java .io .IOException ;
4
-
5
3
import javax .annotation .PostConstruct ;
6
4
7
5
import org .slf4j .Logger ;
12
10
13
11
14
12
@ Component
15
- public class CheckEIConfigurations {
16
-
17
- private static final Logger LOGGER = LoggerFactory .getLogger (CheckEIConfigurations .class );
18
-
13
+ public class ConfigurationLogger {
14
+
15
+ private static final Logger LOGGER = LoggerFactory .getLogger (
16
+ ConfigurationLogger .class );
17
+
19
18
@ Autowired
20
19
Environment env ;
21
-
20
+
22
21
@ PostConstruct
23
22
public void logAndCheckConfiguration () {
24
-
23
+
25
24
LOGGER .debug ("EI Frontend started with following configurations:\n "
26
25
+ "server.port: " + env .getProperty ("server.port" ) + "\n "
27
26
+ "ei.frontend.service.port: " + env .getProperty ("ei.frontend.service.port" ) + "\n "
@@ -34,6 +33,7 @@ public void logAndCheckConfiguration() {
34
33
+ "logging.level.root: " + env .getProperty ("logging.level.root" ) + "\n "
35
34
+ "logging.level.org.springframework.web: " + env .getProperty ("logging.level.org.springframework.web" ) + "\n "
36
35
+ "logging.level.com.ericsson.ei: " + env .getProperty ("logging.level.com.ericsson.ei" ) + "\n "
37
- + "\n These properties is only some of the configurations, more configurations may have been provided.\n " );
36
+ + "\n These properties are only some of the configurations, " +
37
+ "more configurations may have been provided.\n " );
38
38
}
39
39
}
You can’t perform that action at this time.
0 commit comments