Skip to content

Commit ad9a30f

Browse files
Renamed class to ConfigurationLogger (#223)
1 parent 0f0e16a commit ad9a30f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package com.ericsson.ei.frontend.config;
22

3-
import java.io.IOException;
4-
53
import javax.annotation.PostConstruct;
64

75
import org.slf4j.Logger;
@@ -12,16 +10,17 @@
1210

1311

1412
@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+
1918
@Autowired
2019
Environment env;
21-
20+
2221
@PostConstruct
2322
public void logAndCheckConfiguration() {
24-
23+
2524
LOGGER.debug("EI Frontend started with following configurations:\n"
2625
+ "server.port: " + env.getProperty("server.port") + "\n"
2726
+ "ei.frontend.service.port: " + env.getProperty("ei.frontend.service.port") + "\n"
@@ -34,6 +33,7 @@ public void logAndCheckConfiguration() {
3433
+ "logging.level.root: " + env.getProperty("logging.level.root") + "\n"
3534
+ "logging.level.org.springframework.web: " + env.getProperty("logging.level.org.springframework.web") + "\n"
3635
+ "logging.level.com.ericsson.ei: " + env.getProperty("logging.level.com.ericsson.ei") + "\n"
37-
+ "\nThese properties is only some of the configurations, more configurations may have been provided.\n");
36+
+ "\nThese properties are only some of the configurations, " +
37+
"more configurations may have been provided.\n");
3838
}
3939
}

0 commit comments

Comments
 (0)