Skip to content

Commit

Permalink
fix: log errors at the right level
Browse files Browse the repository at this point in the history
  • Loading branch information
danroc committed Oct 31, 2024
1 parent 93af95f commit c53a2de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func getForwardAuth(
log.WithFields(log.Fields{
FieldRequestedDomain: domain,
FieldSourceIP: origin,
}).Warn("Missing required headers")
}).Error("Missing required headers")
writer.WriteHeader(http.StatusForbidden)
return
}
Expand All @@ -60,7 +60,7 @@ func getForwardAuth(
log.WithFields(log.Fields{
FieldRequestedDomain: domain,
FieldSourceIP: origin,
}).Warn("Invalid source IP")
}).Error("Invalid source IP")
writer.WriteHeader(http.StatusForbidden)
return
}
Expand Down

0 comments on commit c53a2de

Please sign in to comment.