more debug code for circleci

dev
Jonatan Nilsson 2021-10-11 02:09:18 +00:00
parent ce1e357079
commit 4780813d3d
2 changed files with 4 additions and 5 deletions

View File

@ -21,11 +21,12 @@ app.after(function(ctx) {
if (ctx.status >= 400) {
logger = ctx.log.warn
}
console.log('')
console.log({
path: ctx.url,
status: ctx.status,
ms: Math.round(ended),
}, 'Request finished')
}, 'Request finished')
logger({
path: ctx.url,
status: ctx.status,

View File

@ -41,11 +41,9 @@ t.describe('Media (API)', () => {
assert.match(err.message, /[Mm]issing/)
await new Promise(function(res) {
setTimeout(res, 100)
setTimeout(res, 10)
})
console.log(server.log.warn.firstCall)
console.log(server.log.warn.secondCall)
assert.strictEqual(server.log.error.callCount, 0)
assert.strictEqual(server.log.warn.callCount, 2)
assert.strictEqual(typeof(server.log.warn.firstCall[0]), 'string')
@ -71,7 +69,7 @@ t.describe('Media (API)', () => {
assert.match(err.message, /[Ii]nvalid/)
await new Promise(function(res) {
setTimeout(res, 100)
setTimeout(res, 10)
})
assert.strictEqual(server.log.error.callCount, 1)