Skip to content

Commit 76fc361

Browse files
authored
Merge pull request #40 from fastify/cemremengu-patch-1
Log debug instead of warn for missing payload
2 parents 61d7843 + d972942 commit 76fc361

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function compressPlugin (fastify, opts, next) {
3030

3131
function compress (payload) {
3232
if (payload == null) {
33-
this.res.log.warn('compress: missing payload')
33+
this.res.log.debug('compress: missing payload')
3434
this.send(new Error('Internal server error'))
3535
return
3636
}
@@ -77,7 +77,7 @@ function compressPlugin (fastify, opts, next) {
7777

7878
function onSend (req, reply, payload, next) {
7979
if (payload == null) {
80-
reply.res.log.warn('compress: missing payload')
80+
reply.res.log.debug('compress: missing payload')
8181
return next()
8282
}
8383

0 commit comments

Comments
 (0)