From 7ffc0a261ab47052bb620c2ab24bb4860af63926 Mon Sep 17 00:00:00 2001 From: Musiker15 Date: Thu, 5 Nov 2026 18:31:38 +0100 Subject: [PATCH] fix: keep the ClamAV signature and user out of the log line, the audit entry has them --- src/dashboard/panelAssets.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dashboard/panelAssets.js b/src/dashboard/panelAssets.js index 045b0c5..3605b55 100644 --- a/src/dashboard/panelAssets.js +++ b/src/dashboard/panelAssets.js @@ -325,7 +325,8 @@ function registerPanelAssetRoutes(api, { requirePermission, audit, configFile, a } if (!verdict.clean) { audit(req, 'panel.asset.infected', spec.slot, { signature: verdict.signature, type, bytes: input.length }); - logger.warn(`[Dashboard] Upload refused, ClamAV found ${logSafe(verdict.signature)} (slot ${spec.slot}, user ${logSafe(req.auth?.userId)}).`); + // Signature and user are in the audit entry above; the log only says that it happened. + logger.warn(`[Dashboard] Upload refused by ClamAV (slot ${spec.slot}). See the audit log for the signature.`); return res.status(422).json({ error: `The virus scanner flagged this file (${verdict.signature}). It was not stored.` }); } }