if is electron then only use disk logging
This commit is contained in:
parent
91e6b46ea3
commit
ba4601cfec
|
@ -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,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue