Roberto Sánchez
2014-09-18 52ce72b22ef8d92a1f35b4993bcddaaa66d67350
securis/src/main/java/net/curisit/securis/ioc/SecurisModule.java
....@@ -25,7 +25,7 @@
2525 private static final int DEFAULT_PORT = 9997;
2626 private static final String PROPERTIES_FILE_NAME = "/server.properties";
2727
28
- private static final Logger log = LogManager.getLogger(SecurisModule.class);
28
+ private static final Logger LOG = LogManager.getLogger(SecurisModule.class);
2929
3030 @Override
3131 protected void configure() {
....@@ -52,7 +52,7 @@
5252 try {
5353 // String url = MessageFormat.format("http://{0}/", InetAddress.getLocalHost().getHostAddress());
5454 String url = MessageFormat.format("http://{0}/", "0.0.0.0");
55
- log.debug("Server url{}", url);
55
+ LOG.debug("Server url{}", url);
5656 return UriBuilder.fromUri(url).port(getPort()).build();
5757 } catch (IllegalArgumentException | UriBuilderException e) {
5858 return UriBuilder.fromUri("http://localhost/").port(getPort()).build();
....@@ -89,7 +89,7 @@
8989 if (!ftmp.exists()) {
9090 if (!ftmp.mkdirs())
9191 return null;
92
- log.debug("Created temporary directory for app in: {}", ftmp.getAbsolutePath());
92
+ LOG.debug("Created temporary directory for app in: {}", ftmp.getAbsolutePath());
9393 ftmp.deleteOnExit();
9494 }
9595 return ftmp;
....@@ -108,7 +108,7 @@
108108 if (!fAppDir.exists()) {
109109 if (!fAppDir.mkdirs())
110110 return null;
111
- log.debug("Created app working directory app in: {}", fAppDir.getAbsolutePath());
111
+ LOG.debug("Created app working directory app in: {}", fAppDir.getAbsolutePath());
112112 }
113113 return fAppDir;
114114 }
....@@ -149,7 +149,7 @@
149149 dataSource.setURL(getUrl(appDir));
150150 dataSource.setUser("curis");
151151 dataSource.setPassword(getPassword());
152
- log.debug("JdbcDataSource: {}", dataSource);
152
+ LOG.debug("JdbcDataSource: {}", dataSource);
153153 return dataSource;
154154 }
155155