Error when attempting logging during Renderer crash #348
-
When a renderer process crashed I receive the following error when attempting to use the log functions within my event handlers that catch the crash. Example code
Error thrown
If the Renderer is crashing should I still be able to use the Versions"electron-log": "^4.4.8" |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Looks like it tries to serialize some complex object. In such a case, the logger still works fine in the main process. Anyway, this behavior is changed in v5 beta. |
Beta Was this translation helpful? Give feedback.
-
@megahertz The call that is throwing the error is in
Should I attempt to update to v5 beta or is their away in my current version to disable attempts to log message in the renderer if the renderer is crashing? I was thinking that maybe I should be disabling the console transport when the renderer crashes and re-enable it when the renderer has been respawned. Also of note is that I have only been working in DEV mode. I don't know if this same issue would happen with my PROD build. |
Beta Was this translation helpful? Give feedback.
@megahertz The call that is throwing the error is in
electronApi.js
file.Should I attempt to update to v5 beta or is their away in my current version to disable attempts to log message in the renderer if the renderer is crashing?
I was thinking that maybe I should be disabling the console transport when the renderer crashes and re-enable it when the renderer has been respawned.
Also of note is that I have only been working in …