From eba70ab8267ee30b909419dc652bb201359a82c0 Mon Sep 17 00:00:00 2001 From: Deluan Date: Fri, 3 Feb 2023 21:04:54 -0500 Subject: [PATCH] Change throttling log messages --- server/public/public_endpoints.go | 2 +- server/subsonic/api.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/public/public_endpoints.go b/server/public/public_endpoints.go index 570cb1eb6..5fd0efbcb 100644 --- a/server/public/public_endpoints.go +++ b/server/public/public_endpoints.go @@ -41,7 +41,7 @@ func (p *Router) routes() http.Handler { r.Use(server.URLParamsMiddleware) r.Group(func(r chi.Router) { if conf.Server.DevArtworkMaxRequests > 0 { - log.Debug("Public images endpoint will be throttled", "maxRequests", conf.Server.DevArtworkMaxRequests, + log.Debug("Throttling public images endpoint", "maxRequests", conf.Server.DevArtworkMaxRequests, "backlogLimit", conf.Server.DevArtworkThrottleBacklogLimit, "backlogTimeout", conf.Server.DevArtworkThrottleBacklogTimeout) r.Use(middleware.ThrottleBacklog(conf.Server.DevArtworkMaxRequests, conf.Server.DevArtworkThrottleBacklogLimit, diff --git a/server/subsonic/api.go b/server/subsonic/api.go index 3f34bb81d..a63fe6881 100644 --- a/server/subsonic/api.go +++ b/server/subsonic/api.go @@ -146,7 +146,7 @@ func (api *Router) routes() http.Handler { r.Group(func(r chi.Router) { // configure request throttling if conf.Server.DevArtworkMaxRequests > 0 { - log.Debug("Subsonic getCoverArt endpoint will be throttled", "maxRequests", conf.Server.DevArtworkMaxRequests, + log.Debug("Throttling Subsonic getCoverArt endpoint", "maxRequests", conf.Server.DevArtworkMaxRequests, "backlogLimit", conf.Server.DevArtworkThrottleBacklogLimit, "backlogTimeout", conf.Server.DevArtworkThrottleBacklogTimeout) r.Use(middleware.ThrottleBacklog(conf.Server.DevArtworkMaxRequests, conf.Server.DevArtworkThrottleBacklogLimit,