Add some helpful debug points when developing

This commit is contained in:
Oliver Akins 2022-08-14 13:51:06 -06:00
parent 5b5ad11676
commit f68b60d14c
No known key found for this signature in database
GPG key ID: 3C2014AF9457AF99

View file

@ -32,6 +32,9 @@ async function init() {
},
cors: true,
},
debug: {
log: isDev ? [ `error` ] : undefined,
},
});
await server.register(inert);
@ -49,7 +52,7 @@ async function init() {
server.start().then(() => {
console.log(`Server listening on ${server.info.uri}`);
});
}).catch(e => console.error(e))
};
init();