mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2025-12-10 16:59:52 +01:00
webapp: fix: return log level for more than 5 modules
This commit is contained in:
committed by
Thomas Basler
parent
a1c67900c3
commit
99e6930108
@@ -42,7 +42,7 @@ void WebApiLoggingClass::onLoggingAdminGet(AsyncWebServerRequest* request)
|
||||
|
||||
int8_t idx = Configuration.getIndexForLogModule(availModule);
|
||||
// Set to inherit if unknown
|
||||
logModule["level"] = idx < 0 || idx > ESP_LOG_VERBOSE ? -1 : config.Logging.Modules[idx].Level;
|
||||
logModule["level"] = idx < 0 || idx >= LOG_MODULE_COUNT ? -1 : config.Logging.Modules[idx].Level;
|
||||
}
|
||||
|
||||
WebApi.sendJsonResponse(request, response, __FUNCTION__, __LINE__);
|
||||
|
||||
Reference in New Issue
Block a user