mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-05 08:18:17 +00:00
Compare commits
1 Commits
json/add-c
...
Xe/demote-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8f45998022 |
@@ -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
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user