Roberto Sánchez
2014-09-18 a4b1e4c32927208e92ca9895fa780e18051d3932
src/main/java/net/curisit/securis/ReqGenerator.java
....@@ -19,7 +19,7 @@
1919
2020 public class ReqGenerator {
2121
22
- private static final Logger log = LogManager.getLogger(ReqGenerator.class);
22
+ private static final Logger LOG = LogManager.getLogger(ReqGenerator.class);
2323
2424 private static ReqGenerator singleton = new ReqGenerator();
2525
....@@ -49,7 +49,7 @@
4949 RequestBean req = JsonUtils.json2object(json, RequestBean.class);
5050 return req;
5151 } catch (IOException e) {
52
- log.error("Request file {} was not found or is not accesible");
52
+ LOG.error("Request file {} was not found or is not accesible");
5353 throw new SeCurisException("ERROR accesing request file: " + requestFile.getAbsolutePath(), e);
5454 }
5555 }
....@@ -67,14 +67,14 @@
6767 json = JsonUtils.toJSON(req, true).getBytes("utf-8");
6868 Files.write(Paths.get(file.toURI()), json, StandardOpenOption.CREATE, StandardOpenOption.TRUNCATE_EXISTING);
6969 } catch (UnsupportedEncodingException e) {
70
- log.error("Error creating json doc from request: " + req, e);
70
+ LOG.error("Error creating json doc from request: " + req, e);
7171 throw new SeCurisException("Error creating json doc from request: " + req, e);
7272 } catch (IOException e) {
73
- log.error("Error creating request file: " + file, e);
73
+ LOG.error("Error creating request file: " + file, e);
7474 throw new SeCurisException("Error creating request file: " + file, e);
7575 }
7676
77
- log.debug("License saved in {}", file);
77
+ LOG.debug("License saved in {}", file);
7878
7979 }
8080
....@@ -87,7 +87,7 @@
8787 String shaLogo = LicUtils.sha256(IOUtils.toByteArray(is), LicenseValidator.LOGO_SECRET);
8888 return shaLogo;
8989 } catch (IOException e) {
90
- log.error("Customer logo was not found in classpath in " + logResource, e);
90
+ LOG.error("Customer logo was not found in classpath in " + logResource, e);
9191 return null;
9292 }
9393 }