[MM-61058] Upgrade electron-log, turn on async logging (#3173)

This commit is contained in:
Devin Binnie
2024-10-23 08:52:29 -04:00
committed by GitHub
parent 9de4f6c2eb
commit 97a872a925
3 changed files with 10 additions and 6 deletions

View File

@@ -6,6 +6,10 @@ import log from 'electron-log';
import Util from 'common/utils/util';
// Turn off sync logging to prevent blocking the main thread
// One downside to this is that some logs may not be written to the log file when the app closes
log.transports.file.sync = false;
export const setLoggingLevel = (level: string) => {
if (log.transports.file.level === level) {
return;