move console.log to log file

This commit is contained in:
Abhinav 2023-12-05 12:19:31 +05:30
parent 729a5eef78
commit 8506b2f5ef

View file

@ -8,6 +8,7 @@ import { setRecoveryKey } from '@ente/accounts/api/user';
import { logError } from '@ente/shared/sentry';
import isElectron from 'is-electron';
import ElectronAPIs from '../electron';
import { addLogLine } from '../logging';
const LOGIN_SUB_KEY_LENGTH = 32;
const LOGIN_SUB_KEY_ID = 1;
@ -104,7 +105,7 @@ export const saveKeyInSessionStore = async (
key
);
setKey(keyType, sessionKeyAttributes);
console.log('fromDesktop', fromDesktop);
addLogLine('fromDesktop', fromDesktop);
if (
isElectron() &&
!fromDesktop &&