From 640d8620bb50b9ee4b6ddcda9709b28f02fe9986 Mon Sep 17 00:00:00 2001 From: 3nprob <3nprob@3nprob> Date: Fri, 8 Oct 2021 02:22:21 +0900 Subject: [PATCH] Enable error log to console --- src/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 6c52a13..26ce76a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -14,7 +14,10 @@ const server = Hapi.server({ files: { relativeTo: Path.join(__dirname, 'static') } - } + }, + debug: { + request: ['error'] + }, }); server.events.on('stop', () => { console.log('Server stopped.');