Merge remote-tracking branch 'origin/master'
All checks were successful
continuous-integration/appveyor/branch AppVeyor build succeeded

This commit is contained in:
Jonatan Nilsson 2022-08-21 21:54:51 +00:00
commit bf2080fd63
2 changed files with 8 additions and 5 deletions

View file

@ -59,15 +59,15 @@ nconf.defaults({
"format": "avif",
"blur": 10,
"resize": {
"width": 300,
"height": 300,
"width": 200,
"height": 200,
"fit": "inside",
"withoutEnlargement": true,
"kernel": "lanczos3"
},
"avif": {
"quality": 50,
"effort": 4
"quality": 30,
"effort": 9
}
},
"small": {

View file

@ -61,6 +61,9 @@ export default class Server {
let healthCollectLimit = 60 * 60 * 12
this.flaska.after(function(ctx) {
if (ctx.aborted && ctx.status === 200) {
ctx.status = 299
}
let ended = new Date().getTime()
var requestTime = ended - ctx.state.started
@ -89,7 +92,7 @@ export default class Server {
ctx.log[level]({
duration: requestTime,
status: ctx.status,
}, `<-- ${status}${ctx.method} ${ctx.url}`)
}, (ctx.aborted ? '[ABORT]' : '<--') + ` ${status}${ctx.method} ${ctx.url}`)
})
}