Roberto Sánchez
2014-09-18 a4b1e4c32927208e92ca9895fa780e18051d3932
src/main/java/net/curisit/securis/utils/Params.java
....@@ -17,7 +17,7 @@
1717 */
1818 public class Params {
1919
20
- private static Logger log = LogManager.getLogger(Params.class);
20
+ private static final Logger LOG = LogManager.getLogger(Params.class);
2121
2222 /**
2323 * Key used to store config file resource location. In a web application, can be set as initial parameter in a servlet loaded on startup
....@@ -30,7 +30,7 @@
3030 try {
3131 loadParameters(KEY_CONFIG_FILE);
3232 } catch (IOException e) {
33
- log.error("Config file {} was not found in classpath", KEY_CONFIG_FILE);
33
+ LOG.error("Config file {} was not found in classpath", KEY_CONFIG_FILE);
3434 System.exit(-2);
3535 }
3636 }
....@@ -44,16 +44,16 @@
4444 */
4545 public static void loadParameters(String resource) throws IOException {
4646
47
- log.debug("Loading params from " + resource);
47
+ LOG.debug("Loading params from " + resource);
4848 InputStream fileis = Params.class.getResourceAsStream(resource);
4949
5050 params = new Properties();
5151 try {
5252
5353 params.load(fileis);
54
- log.debug("Params loaded OK from {}", resource);
54
+ LOG.debug("Params loaded OK from {}", resource);
5555 } catch (IOException e) {
56
- log.error("Error loading config file: " + e);
56
+ LOG.error("Error loading config file: " + e);
5757 params = null;
5858 throw e;
5959 }