More exit debugging

Papers, please.
This commit is contained in:
Asher 2019-01-31 11:37:12 -06:00 committed by Kyle Carberry
parent e585587e67
commit c594af4396
No known key found for this signature in database
GPG Key ID: A0409BDB6B0B3EDB

View File

@ -161,7 +161,12 @@ export const handleNewSession = (connection: SendableConnection, newSession: New
connection.send(sm.serializeBinary()); connection.send(sm.serializeBinary());
process.on("exit", (code) => { process.on("exit", (code) => {
childLogger.debug("Exited", field("id", newSession.getId())); childLogger.debug(() => [
"Exited",
field("id", newSession.getId()),
field("command", newSession.getCommand()),
field("args", newSession.getArgsList()),
]);
const serverMsg = new ServerMessage(); const serverMsg = new ServerMessage();
const exit = new SessionDoneMessage(); const exit = new SessionDoneMessage();
exit.setId(newSession.getId()); exit.setId(newSession.getId());