log_info for command calls

This commit is contained in:
proddy
2024-07-24 17:57:51 +02:00
parent fa54cb6a48
commit 05ff54e5e5

View File

@@ -400,15 +400,13 @@ uint8_t Command::call(const uint8_t device_type, const char * cmd, const char *
LOG_WARNING(error); LOG_WARNING(error);
} else { } else {
if (single_command) { if (single_command) {
// TODO not sure if these should go to INFO as there may be a lot of calls, e.g. ioBroker // log as DEBUG (TRACE) regarless if compiled with EMSESP_DEBUG
// TODO for now using debug (regarles if compiled with EMSESP_DEBUG)
// TODO mvdp ?
logger_.debug(("%sCalled command %s"), ro.c_str(), info_s); logger_.debug(("%sCalled command %s"), ro.c_str(), info_s);
} else { } else {
if (id > 0) { 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 { } 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);
} }
} }
} }