From bdc1ef4352f3af7cad86f06d2a60d4b244c466aa Mon Sep 17 00:00:00 2001 From: gnuxie Date: Tue, 17 Dec 2024 23:31:57 +0000 Subject: [PATCH] If it's an error, log as error mare. https://github.com/the-draupnir-project/Draupnir/issues/643. --- src/webapis/WebAPIs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webapis/WebAPIs.ts b/src/webapis/WebAPIs.ts index ab6a8ccc..149005db 100644 --- a/src/webapis/WebAPIs.ts +++ b/src/webapis/WebAPIs.ts @@ -261,7 +261,7 @@ export class WebAPIs { // Match the spec behavior of `/report`: return 200 and an empty JSON. response.status(200).json({}); } catch (ex) { - log.warn("Error responding to an abuse report", roomID, eventID, ex); + log.error("Error responding to an abuse report", roomID, eventID, ex); response.status(503); } }