From 05ff54e5e5fe606a4b9f4f09603c4d0f0a30eb49 Mon Sep 17 00:00:00 2001 From: proddy Date: Wed, 24 Jul 2024 17:57:51 +0200 Subject: [PATCH] log_info for command calls --- src/command.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/command.cpp b/src/command.cpp index a0825de1d..15a29bace 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -400,15 +400,13 @@ uint8_t Command::call(const uint8_t device_type, const char * cmd, const char * LOG_WARNING(error); } else { if (single_command) { - // TODO not sure if these should go to INFO as there may be a lot of calls, e.g. ioBroker - // TODO for now using debug (regarles if compiled with EMSESP_DEBUG) - // TODO mvdp ? + // log as DEBUG (TRACE) regarless if compiled with EMSESP_DEBUG logger_.debug(("%sCalled command %s"), ro.c_str(), info_s); } else { if (id > 0) { - logger_.debug(("%sCalled command %s with value %s and id %d on device 0x%02X"), ro.c_str(), info_s, value, id, device_id); + LOG_INFO(("%sCalled command %s with value %s and id %d on device 0x%02X"), ro.c_str(), info_s, value, id, device_id); } else { - logger_.debug(("%sCalled command %s with value %s"), ro.c_str(), info_s, value); + LOG_INFO(("%sCalled command %s with value %s"), ro.c_str(), info_s, value); } } }