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()) {
|
if (isDEVSentryENV()) {
|
||||||
console.log(log);
|
console.log(log);
|
||||||
}
|
}
|
||||||
saveLogLine({
|
|
||||||
timestamp: Date.now(),
|
|
||||||
logLine: log,
|
|
||||||
});
|
|
||||||
if (isElectron()) {
|
if (isElectron()) {
|
||||||
ElectronService.logToDisk(log);
|
ElectronService.logToDisk(log);
|
||||||
|
} else {
|
||||||
|
saveLogLine({
|
||||||
|
timestamp: Date.now(),
|
||||||
|
logLine: log,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue