if is electron then only use disk logging

This commit is contained in:
Abhinav 2022-10-15 11:58:43 +05:30
parent 91e6b46ea3
commit ba4601cfec

View file

@ -10,12 +10,13 @@ export function addLogLine(log: string) {
if (isDEVSentryENV()) {
console.log(log);
}
saveLogLine({
timestamp: Date.now(),
logLine: log,
});
if (isElectron()) {
ElectronService.logToDisk(log);
} else {
saveLogLine({
timestamp: Date.now(),
logLine: log,
});
}
}