mirror of
https://github.com/mitb-archive/filebot
synced 2025-03-09 05:51:31 -04:00
Add additional logging output so user can see exactly where the license file was stored to (i.e. which users user home)
This commit is contained in:
parent
088676ef23
commit
1629352881
@ -178,9 +178,11 @@ public class License {
|
|||||||
synchronized (License.INSTANCE) {
|
synchronized (License.INSTANCE) {
|
||||||
// check if license file is valid and not expired
|
// check if license file is valid and not expired
|
||||||
License license = parseLicenseText(psm, true).check();
|
License license = parseLicenseText(psm, true).check();
|
||||||
|
File file = License.FILE.get();
|
||||||
|
|
||||||
// write to default license file path
|
// write to default license file path
|
||||||
Files.write(License.FILE.get().toPath(), psm.getBytes(UTF_8));
|
log.finest(format("Write [%s] to [%s]", license, file));
|
||||||
|
Files.write(file.toPath(), psm.getBytes(UTF_8));
|
||||||
|
|
||||||
// clear memoized instance and reload on next access
|
// clear memoized instance and reload on next access
|
||||||
License.INSTANCE.clear();
|
License.INSTANCE.clear();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user