| .. | .. |
|---|
| 19 | 19 | |
|---|
| 20 | 20 | public class ReqGenerator { |
|---|
| 21 | 21 | |
|---|
| 22 | | - private static final Logger log = LogManager.getLogger(ReqGenerator.class); |
|---|
| 22 | + private static final Logger LOG = LogManager.getLogger(ReqGenerator.class); |
|---|
| 23 | 23 | |
|---|
| 24 | 24 | private static ReqGenerator singleton = new ReqGenerator(); |
|---|
| 25 | 25 | |
|---|
| .. | .. |
|---|
| 49 | 49 | RequestBean req = JsonUtils.json2object(json, RequestBean.class); |
|---|
| 50 | 50 | return req; |
|---|
| 51 | 51 | } 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"); |
|---|
| 53 | 53 | throw new SeCurisException("ERROR accesing request file: " + requestFile.getAbsolutePath(), e); |
|---|
| 54 | 54 | } |
|---|
| 55 | 55 | } |
|---|
| .. | .. |
|---|
| 67 | 67 | json = JsonUtils.toJSON(req, true).getBytes("utf-8"); |
|---|
| 68 | 68 | Files.write(Paths.get(file.toURI()), json, StandardOpenOption.CREATE, StandardOpenOption.TRUNCATE_EXISTING); |
|---|
| 69 | 69 | } 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); |
|---|
| 71 | 71 | throw new SeCurisException("Error creating json doc from request: " + req, e); |
|---|
| 72 | 72 | } catch (IOException e) { |
|---|
| 73 | | - log.error("Error creating request file: " + file, e); |
|---|
| 73 | + LOG.error("Error creating request file: " + file, e); |
|---|
| 74 | 74 | throw new SeCurisException("Error creating request file: " + file, e); |
|---|
| 75 | 75 | } |
|---|
| 76 | 76 | |
|---|
| 77 | | - log.debug("License saved in {}", file); |
|---|
| 77 | + LOG.debug("License saved in {}", file); |
|---|
| 78 | 78 | |
|---|
| 79 | 79 | } |
|---|
| 80 | 80 | |
|---|
| .. | .. |
|---|
| 87 | 87 | String shaLogo = LicUtils.sha256(IOUtils.toByteArray(is), LicenseValidator.LOGO_SECRET); |
|---|
| 88 | 88 | return shaLogo; |
|---|
| 89 | 89 | } 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); |
|---|
| 91 | 91 | return null; |
|---|
| 92 | 92 | } |
|---|
| 93 | 93 | } |
|---|