| .. | .. |
|---|
| 25 | 25 | private static final int DEFAULT_PORT = 9997; |
|---|
| 26 | 26 | private static final String PROPERTIES_FILE_NAME = "/server.properties"; |
|---|
| 27 | 27 | |
|---|
| 28 | | - private static final Logger log = LogManager.getLogger(SecurisModule.class); |
|---|
| 28 | + private static final Logger LOG = LogManager.getLogger(SecurisModule.class); |
|---|
| 29 | 29 | |
|---|
| 30 | 30 | @Override |
|---|
| 31 | 31 | protected void configure() { |
|---|
| .. | .. |
|---|
| 52 | 52 | try { |
|---|
| 53 | 53 | // String url = MessageFormat.format("http://{0}/", InetAddress.getLocalHost().getHostAddress()); |
|---|
| 54 | 54 | String url = MessageFormat.format("http://{0}/", "0.0.0.0"); |
|---|
| 55 | | - log.debug("Server url{}", url); |
|---|
| 55 | + LOG.debug("Server url{}", url); |
|---|
| 56 | 56 | return UriBuilder.fromUri(url).port(getPort()).build(); |
|---|
| 57 | 57 | } catch (IllegalArgumentException | UriBuilderException e) { |
|---|
| 58 | 58 | return UriBuilder.fromUri("http://localhost/").port(getPort()).build(); |
|---|
| .. | .. |
|---|
| 89 | 89 | if (!ftmp.exists()) { |
|---|
| 90 | 90 | if (!ftmp.mkdirs()) |
|---|
| 91 | 91 | return null; |
|---|
| 92 | | - log.debug("Created temporary directory for app in: {}", ftmp.getAbsolutePath()); |
|---|
| 92 | + LOG.debug("Created temporary directory for app in: {}", ftmp.getAbsolutePath()); |
|---|
| 93 | 93 | ftmp.deleteOnExit(); |
|---|
| 94 | 94 | } |
|---|
| 95 | 95 | return ftmp; |
|---|
| .. | .. |
|---|
| 108 | 108 | if (!fAppDir.exists()) { |
|---|
| 109 | 109 | if (!fAppDir.mkdirs()) |
|---|
| 110 | 110 | return null; |
|---|
| 111 | | - log.debug("Created app working directory app in: {}", fAppDir.getAbsolutePath()); |
|---|
| 111 | + LOG.debug("Created app working directory app in: {}", fAppDir.getAbsolutePath()); |
|---|
| 112 | 112 | } |
|---|
| 113 | 113 | return fAppDir; |
|---|
| 114 | 114 | } |
|---|
| .. | .. |
|---|
| 149 | 149 | dataSource.setURL(getUrl(appDir)); |
|---|
| 150 | 150 | dataSource.setUser("curis"); |
|---|
| 151 | 151 | dataSource.setPassword(getPassword()); |
|---|
| 152 | | - log.debug("JdbcDataSource: {}", dataSource); |
|---|
| 152 | + LOG.debug("JdbcDataSource: {}", dataSource); |
|---|
| 153 | 153 | return dataSource; |
|---|
| 154 | 154 | } |
|---|
| 155 | 155 | |
|---|