mirror of
https://github.com/LorenEteval/Furious.git
synced 2026-10-06 13:58:01 +03:00
Unify application logging
Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
@@ -99,7 +99,13 @@ class AppMainProcess(ProcessContext.Process):
|
||||
if APP() is None:
|
||||
crashLog = f'{stackLog}'
|
||||
else:
|
||||
crashLog = f'{AppLoggerWindow.Self().plainText()}\n{stackLog}'
|
||||
logManager = AppLogManager()
|
||||
|
||||
crashLog = (
|
||||
f'{logManager.plainText()}\n{stackLog}'
|
||||
if logManager is not None
|
||||
else f'{stackLog}'
|
||||
)
|
||||
|
||||
with open(CRASH_LOG_DIR / self.logFileName, 'w', encoding='utf-8') as file:
|
||||
file.write(crashLog)
|
||||
|
||||
Reference in New Issue
Block a user