From 61bf29ed5e5e82571ea9b99006317dcb5347bed9 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 a63f31f5b..504a39b6c 100644 --- a/cmd/serve/dlna/dlna_util.go +++ b/cmd/serve/dlna/dlna_util.go @@ -107,7 +107,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) }