From c594af43960ebf5c212b4d5e0423d83e39811e52 Mon Sep 17 00:00:00 2001 From: Asher Date: Thu, 31 Jan 2019 11:37:12 -0600 Subject: [PATCH] More exit debugging Papers, please. --- packages/protocol/src/node/command.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/protocol/src/node/command.ts b/packages/protocol/src/node/command.ts index 395bf0592..ac7a2825b 100644 --- a/packages/protocol/src/node/command.ts +++ b/packages/protocol/src/node/command.ts @@ -161,7 +161,12 @@ export const handleNewSession = (connection: SendableConnection, newSession: New connection.send(sm.serializeBinary()); 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 exit = new SessionDoneMessage(); exit.setId(newSession.getId());