From 69897b97fb982f6c23ff6c8633744ae342dac806 Mon Sep 17 00:00:00 2001 From: Simon Bos Date: Sun, 6 Oct 2024 14:11:11 +0200 Subject: [PATCH] dlna: fix loggingResponseWriter disregarding log level --- cmd/serve/dlna/dlna_util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/serve/dlna/dlna_util.go b/cmd/serve/dlna/dlna_util.go index ca61488af..c8d931009 100644 --- a/cmd/serve/dlna/dlna_util.go +++ b/cmd/serve/dlna/dlna_util.go @@ -108,7 +108,7 @@ func (lrw *loggingResponseWriter) logRequest(code int, err interface{}) { err = "" } - fs.LogPrintf(level, lrw.request.URL, "%s %s %d %s %s", + fs.LogLevelPrintf(level, lrw.request.URL, "%s %s %d %s %s", lrw.request.RemoteAddr, lrw.request.Method, code, lrw.request.Header.Get("SOAPACTION"), err) }