Add some helpful debug points when developing
This commit is contained in:
parent
5b5ad11676
commit
f68b60d14c
1 changed files with 4 additions and 1 deletions
|
|
@ -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();
|
||||
Loading…
Add table
Add a link
Reference in a new issue