Replace console.warn with logger.warn
Related https://github.com/vector-im/element-web/issues/18425
This commit is contained in:
committed by
Dariusz Niemczyk
parent
5e73a212f4
commit
5290afcc4c
@@ -283,7 +283,7 @@ async function onSecretRequested(
|
||||
}
|
||||
return key && encodeBase64(key);
|
||||
}
|
||||
console.warn("onSecretRequested didn't recognise the secret named ", name);
|
||||
logger.warn("onSecretRequested didn't recognise the secret named ", name);
|
||||
}
|
||||
|
||||
export const crossSigningCallbacks: ICryptoCallbacks = {
|
||||
@@ -388,7 +388,7 @@ export async function accessSecretStorage(func = async () => { }, forceReset = f
|
||||
logger.log("Setting dehydration key");
|
||||
await cli.setDehydrationKey(secretStorageKeys[keyId], dehydrationKeyInfo, "Backup device");
|
||||
} else if (!keyId) {
|
||||
console.warn("Not setting dehydration key: no SSSS key found");
|
||||
logger.warn("Not setting dehydration key: no SSSS key found");
|
||||
} else {
|
||||
logger.log("Not setting dehydration key: feature disabled");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user