Add logging quick exit code

This commit is contained in:
Theo Arends 2020-12-23 10:56:21 +01:00
parent 317b5ab2b6
commit 0624ee1ca3
2 changed files with 2 additions and 1 deletions

View File

@ -1927,6 +1927,7 @@ void Syslog(void)
void SyslogAsync(bool refresh) {
static uint32_t index = 1;
if (!TasmotaGlobal.syslog_level) { return; }
if (refresh && !NeedLogRefresh(TasmotaGlobal.syslog_level, index)) { return; }
char* line;

View File

@ -294,7 +294,7 @@ void MqttUnsubscribe(const char *topic)
void MqttPublishLoggingAsync(bool refresh) {
static uint32_t index = 1;
if (!Settings.flag.mqtt_enabled) { return; } // SetOption3 - Enable MQTT
if (!Settings.mqttlog_level || !Settings.flag.mqtt_enabled) { return; } // SetOption3 - Enable MQTT
if (refresh && !NeedLogRefresh(Settings.mqttlog_level, index)) { return; }
char* line;