mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-30 02:50:39 +00:00
Improve some log output
This commit is contained in:
parent
0840e0dedb
commit
d1e32f2b11
1 changed files with 2 additions and 2 deletions
|
@ -192,9 +192,7 @@ public class SignalAccount implements Closeable {
|
||||||
final var pair = openFileChannel(fileName, waitForLock);
|
final var pair = openFileChannel(fileName, waitForLock);
|
||||||
try {
|
try {
|
||||||
var signalAccount = new SignalAccount(pair.first(), pair.second());
|
var signalAccount = new SignalAccount(pair.first(), pair.second());
|
||||||
logger.trace("Loading account file");
|
|
||||||
signalAccount.load(dataPath, accountPath, settings);
|
signalAccount.load(dataPath, accountPath, settings);
|
||||||
logger.trace("Migrating legacy parts of account file");
|
|
||||||
signalAccount.migrateLegacyConfigs();
|
signalAccount.migrateLegacyConfigs();
|
||||||
signalAccount.init();
|
signalAccount.init();
|
||||||
|
|
||||||
|
@ -367,6 +365,7 @@ public class SignalAccount implements Closeable {
|
||||||
|
|
||||||
private void migrateLegacyConfigs() {
|
private void migrateLegacyConfigs() {
|
||||||
if (isPrimaryDevice() && getPniIdentityKeyPair() == null) {
|
if (isPrimaryDevice() && getPniIdentityKeyPair() == null) {
|
||||||
|
logger.trace("Migrating legacy parts of account file");
|
||||||
setPniIdentityKeyPair(KeyUtils.generateIdentityKeyPair());
|
setPniIdentityKeyPair(KeyUtils.generateIdentityKeyPair());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -438,6 +437,7 @@ public class SignalAccount implements Closeable {
|
||||||
private void load(
|
private void load(
|
||||||
File dataPath, String accountPath, final Settings settings
|
File dataPath, String accountPath, final Settings settings
|
||||||
) throws IOException {
|
) throws IOException {
|
||||||
|
logger.trace("Loading account file {}", accountPath);
|
||||||
this.dataPath = dataPath;
|
this.dataPath = dataPath;
|
||||||
this.accountPath = accountPath;
|
this.accountPath = accountPath;
|
||||||
this.settings = settings;
|
this.settings = settings;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue