chore(lib): demote explicit deny logs from Info to Info-1

Closes: #1322
This commit is contained in:
Xe Iaso
2025-12-03 23:35:03 -05:00
parent 9c54aa852f
commit 8f45998022
2 changed files with 3 additions and 1 deletions

View File

@@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
- Demote "explicit deny" logs from the Info log level to Info minus one. To get those logs back, set `SLOG_LEVEL=INFO-1` in your environment variables.
<!-- This changes the project to: -->
## v1.24.0 [pre1]: Y'shtola Rhul

View File

@@ -304,7 +304,7 @@ func (s *Server) checkRules(w http.ResponseWriter, r *http.Request, cr policy.Ch
return true
case config.RuleDeny:
s.ClearCookie(w, CookieOpts{Path: cookiePath, Host: r.Host})
lg.Info("explicit deny")
lg.Log(r.Context(), slog.LevelInfo-slog.Level(1), "explicit deny")
if rule == nil {
lg.Error("rule is nil, cannot calculate checksum")
s.respondWithError(w, r, fmt.Sprintf("%s \"maybeReverseProxy.RuleDeny\"", localizer.T("internal_server_error")), makeCode(ErrActualAnubisBug))