]> nmode's Git Repositories - signal-cli/commitdiff
Improve some log output
authorAsamK <asamk@gmx.de>
Mon, 29 Jan 2024 17:21:44 +0000 (18:21 +0100)
committerAsamK <asamk@gmx.de>
Mon, 29 Jan 2024 17:21:44 +0000 (18:21 +0100)
lib/src/main/java/org/asamk/signal/manager/storage/SignalAccount.java

index c324b01238eab3badc26c41431b7a8140dcabc7e..a493f0d1905cd7961b7c1f771283d8dd35362350 100644 (file)
@@ -192,9 +192,7 @@ public class SignalAccount implements Closeable {
         final var pair = openFileChannel(fileName, waitForLock);
         try {
             var signalAccount = new SignalAccount(pair.first(), pair.second());
-            logger.trace("Loading account file");
             signalAccount.load(dataPath, accountPath, settings);
-            logger.trace("Migrating legacy parts of account file");
             signalAccount.migrateLegacyConfigs();
             signalAccount.init();
 
@@ -367,6 +365,7 @@ public class SignalAccount implements Closeable {
 
     private void migrateLegacyConfigs() {
         if (isPrimaryDevice() && getPniIdentityKeyPair() == null) {
+            logger.trace("Migrating legacy parts of account file");
             setPniIdentityKeyPair(KeyUtils.generateIdentityKeyPair());
         }
     }
@@ -438,6 +437,7 @@ public class SignalAccount implements Closeable {
     private void load(
             File dataPath, String accountPath, final Settings settings
     ) throws IOException {
+        logger.trace("Loading account file {}", accountPath);
         this.dataPath = dataPath;
         this.accountPath = accountPath;
         this.settings = settings;