mirror of
https://github.com/electron/electron.git
synced 2026-01-28 16:58:21 -05:00
fixup: add logging when the Electron Enable Logging env var is set
This commit is contained in:
@@ -424,6 +424,9 @@ app.once('ready', function () {
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
// Ignore error
|
||||
if (process.env.ELECTRON_ENABLE_LOGGING) {
|
||||
console.error('Failed to load browser extension from directory:', srcDirectory)
|
||||
console.error(error)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user