From 967769ea05d8359e9c8bdb9a7ad9dfe26fce0112 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Fri, 13 Aug 2021 15:12:01 +0800 Subject: [PATCH] inux ubuntu --- packages/mitmproxy/src/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/mitmproxy/src/index.js b/packages/mitmproxy/src/index.js index aede43e..010c939 100644 --- a/packages/mitmproxy/src/index.js +++ b/packages/mitmproxy/src/index.js @@ -34,6 +34,10 @@ function registerProcessListener () { log.info('Unhandled Rejection at: Promise', p, 'err:', err) // application specific logging, throwing an error, or other logic here }) + + process.on('exit', function (code) { + log.info('代理服务进程被关闭:', code) + }) } const api = {