| .. | .. |
|---|
| 25 | 25 | */ |
|---|
| 26 | 26 | public class LicenseManager { |
|---|
| 27 | 27 | |
|---|
| 28 | | - private static final Logger log = LogManager.getLogger(License.class); |
|---|
| 28 | + private static final Logger LOG = LogManager.getLogger(License.class); |
|---|
| 29 | 29 | |
|---|
| 30 | 30 | private static LicenseManager singleton = new LicenseManager(); |
|---|
| 31 | 31 | |
|---|
| .. | .. |
|---|
| 109 | 109 | json = JsonUtils.toJSON(signedLic, true).getBytes("utf-8"); |
|---|
| 110 | 110 | Files.write(Paths.get(file.toURI()), json, StandardOpenOption.CREATE, StandardOpenOption.TRUNCATE_EXISTING); |
|---|
| 111 | 111 | } catch (UnsupportedEncodingException e) { |
|---|
| 112 | | - log.error("Error creating json doc from license: " + license, e); |
|---|
| 112 | + LOG.error("Error creating json doc from license: " + license, e); |
|---|
| 113 | 113 | throw new SeCurisException("Error creating json doc from license: " + license, e); |
|---|
| 114 | 114 | } catch (IOException e) { |
|---|
| 115 | | - log.error("Error creating license file: " + file, e); |
|---|
| 115 | + LOG.error("Error creating license file: " + file, e); |
|---|
| 116 | 116 | throw new SeCurisException("Error creating json doc from license: " + license, e); |
|---|
| 117 | 117 | } |
|---|
| 118 | 118 | |
|---|
| 119 | | - log.debug("License saved in {}", file); |
|---|
| 119 | + LOG.debug("License saved in {}", file); |
|---|
| 120 | 120 | |
|---|
| 121 | 121 | } |
|---|
| 122 | 122 | |
|---|