mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
added DEBUG around logger().debug to prevent 'undefined' showing in log
This commit is contained in:
@@ -347,7 +347,9 @@ bool WebSchedulerService::command(const char * cmd, const char * data) {
|
|||||||
uint8_t return_code = Command::process(command_str, true, input, output); // admin set
|
uint8_t return_code = Command::process(command_str, true, input, output); // admin set
|
||||||
|
|
||||||
if (return_code == CommandRet::OK) {
|
if (return_code == CommandRet::OK) {
|
||||||
EMSESP::logger().debug("Scheduled command %s with data %s successfully", cmd, data);
|
#if defined(EMSESP_DEBUG)
|
||||||
|
EMSESP::logger().debug("Scheduled command '%s' with data '%s' was successful", cmd, data);
|
||||||
|
#endif
|
||||||
if (strlen(data) == 0 && output.size()) {
|
if (strlen(data) == 0 && output.size()) {
|
||||||
Mqtt::queue_publish("response", output);
|
Mqtt::queue_publish("response", output);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user