Skip to content

Commit

Permalink
Don't warn, just debug for missing status code & content type (#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
pajlada authored Dec 4, 2022
1 parent 5aade9f commit 2969187
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cache/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@ func (c *PostgreSQLCache) load(ctx context.Context, key string, r *http.Request)
defer c.rollbackDependents(ctx, key)

if statusCode == nil {
log.Warnw("Missing status code, setting to 200 default")
log.Debugw("Missing status code, setting to 200 default")
statusCode = &defaultStatusCode
}
if contentType == nil {
log.Warnw("Missing content type, setting to application/json default")
log.Debugw("Missing content type, setting to application/json default")
contentType = &defaultContentType
}

Expand Down

0 comments on commit 2969187

Please sign in to comment.