From 2c2adc9678f4bc592598f230669f3c85ba67af29 Mon Sep 17 00:00:00 2001 From: Marcus Date: Sun, 20 Oct 2024 01:32:18 +0200 Subject: [PATCH] add configurable webserver logging to serial --- Arduino/CanGrow/include/CanGrow_Webserver.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Arduino/CanGrow/include/CanGrow_Webserver.h b/Arduino/CanGrow/include/CanGrow_Webserver.h index c91d0db..2b0c563 100644 --- a/Arduino/CanGrow/include/CanGrow_Webserver.h +++ b/Arduino/CanGrow/include/CanGrow_Webserver.h @@ -68,8 +68,10 @@ void SetupWebserver() { requestLogger.setOutput(Serial); // this activates the middleware if(configSystem.httpLogSerial == true) { - Serial.println(":: [Webserver] configSystem.httpLogSerial is 'true', enable logging to serial"); + Serial.println(":: [Webserver] serial request logging is enabled"); webserver.addMiddleware(&requestLogger); + } else { + Serial.println(":: [Webserver] serial request logging is disabled"); } webserver.onNotFound(WebserverNotFound);