From 861fd9f92d7bcd058538dbb5b0d83e3ce619fbee Mon Sep 17 00:00:00 2001 From: Fredrik Lindberg Date: Thu, 31 Aug 2023 21:55:16 +0200 Subject: [PATCH] fix: log stack trace in debug mode --- src/listener/http-listener.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/listener/http-listener.js b/src/listener/http-listener.js index 3fd9d71..025ef7d 100644 --- a/src/listener/http-listener.js +++ b/src/listener/http-listener.js @@ -84,6 +84,7 @@ class HttpListener extends ListenerInterface { } } catch (e) { this.logger.error(e.message); + this.logger.debug(e.stack); ctx.res.statusCode = 500; ctx.res.end(); }