Improve bad request management and tests

This commit is contained in:
ngosang
2021-10-18 19:27:21 +02:00
parent a841d67745
commit 356b893c18
4 changed files with 95 additions and 51 deletions

View File

@@ -22,10 +22,13 @@ function toIsoString(date: Date) {
}
export default {
incRequests: () => { requests++ },
incRequests: () => {
requests++
},
html(html: string) {
if (LOG_HTML)
this.debug(html)
if (LOG_HTML) {
this.debug(html)
}
},
...require('console-log-level')(
{level: process.env.LOG_LEVEL || 'info',