feat: added log level setting

This commit is contained in:
Yurii committed 2024-10-15 04:07:00 +03:00
1 parent a9e97c15ad
commit 5553a13cc0
13 files changed
+60 -39

No files matched your search

+1 -1
View File
@@ -270,7 +270,7 @@ protected:
return;
}
if (settings.system.debug) {
if (settings.system.logLevel >= TinyLogger::Level::TRACE) {
Log.strace(FPSTR(L_MQTT_MSG), F("Topic: %s\r\n> "), topic);
if (Log.lock()) {
for (size_t i = 0; i < length; i++) {