fix(desktop): disable packaged console logging (#40794)
Co-authored-by: Luke Parker <10430890+Hona@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
847771fe06
commit
f6c5afe5a9
@@ -189,6 +189,11 @@ async function writeZip(output: string, entries: Entry[]) {
|
||||
}
|
||||
|
||||
function initConsoleTransport() {
|
||||
if (app.isPackaged) {
|
||||
log.transports.console.level = false
|
||||
return
|
||||
}
|
||||
|
||||
const write = log.transports.console.writeFn.bind(log.transports.console)
|
||||
log.transports.console.writeFn = (options) => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user