From 1805d555008d3a92c1a3b10c3e1f2fa242b50102 Mon Sep 17 00:00:00 2001 From: sh123 Date: Sat, 13 Nov 2021 11:04:03 +0200 Subject: [PATCH] Fix bug with log levels --- loraprs_service.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/loraprs_service.cpp b/loraprs_service.cpp index 0a8d64e..7779c0f 100644 --- a/loraprs_service.cpp +++ b/loraprs_service.cpp @@ -39,6 +39,8 @@ void Service::setup(const Config &conf) // disable logging when USB is used for data transfer if (config_.UsbSerialEnable) { + LOG_SET_LEVEL(DebugLogLevel::LVL_NONE); + } else { LOG_SET_LEVEL(config_.LogLevel); }