From 1629352881cf5660b708d126aab13db4debe36d6 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 11 Mar 2019 01:08:11 +0700 Subject: [PATCH] Add additional logging output so user can see exactly where the license file was stored to (i.e. which users user home) --- source/net/filebot/License.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/net/filebot/License.java b/source/net/filebot/License.java index 3c687761..a1bacad3 100644 --- a/source/net/filebot/License.java +++ b/source/net/filebot/License.java @@ -178,9 +178,11 @@ public class License { synchronized (License.INSTANCE) { // check if license file is valid and not expired License license = parseLicenseText(psm, true).check(); + File file = License.FILE.get(); // 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 License.INSTANCE.clear();