Closed springmeyer closed 9 years ago
@springmeyer nice, this is great. I also just added something similar but for error events in tilemill/atom-shell, see here.
Do you think both stderr
and uncaughtException
data events are needed?
Do you think both stderr and uncaughtException data events are needed?
@bsudekum - I'm not sure - Can you test and let me know what you find?
bump @bsudekum - let me know what you think on stderr.
Before continuing here, you might consider merging my PR https://github.com/mapbox/mapbox-studio/pull/1265
The current solution in master is not really async aware, which showed when I activated shelllog()
, which seems to take considerably more time on Windows.
Consequence was, even though the server process had started successfully it never loaded in atom-shell.
Also atom.quit()
should be used instead of process.exit()
to allow for a proper shutdown of atom-shell.
I've found that currently if
throw error
happens in the server:So a server crash basically silently and immediately brings the whole app down.
One step forward (and what this pull request is limited to) would be to at least log the cause of the crash to
app.log
so that users can help us know what happened and fix it. A server crash should never happen, but obviously if it does then we want to know the full stack trace to be able to fix it./cc @bsudekum can you ensure this same situation is logged in tilemill (I think it already is).
/cc @yhahn and @camilleanne for gut check
Next action before merging:
While I'm here thinking about this, a blue sky solution would be:
exit
exit
is clicked the shell shuts down