1
0
mirror of https://github.com/mitb-archive/filebot synced 2025-03-09 13:59:49 -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:
Reinhard Pointner 2019-03-11 01:08:11 +07:00
parent 088676ef23
commit 1629352881

View File

@ -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();