From d260ea514b068c815e07eb5d2cc73e4c8cb75b9a Mon Sep 17 00:00:00 2001 From: proddy Date: Tue, 17 Nov 2020 12:25:21 +0100 Subject: [PATCH] set empty syslog settings to flush queue --- src/system.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/system.cpp b/src/system.cpp index c4ba8a9f2..a20a1765f 100644 --- a/src/system.cpp +++ b/src/system.cpp @@ -162,8 +162,11 @@ void System::syslog_init() { syslog_enabled_ = false; } + // in case service is still running, this flushes the queue - https://github.com/proddy/EMS-ESP/issues/496 if (!syslog_enabled_) { - // syslog_.log_level((uuid::log::Level)-1); // in case service is still running, this flushes the queue + syslog_.log_level((uuid::log::Level)-1); + syslog_.mark_interval(0); + syslog_.destination((IPAddress)((uint32_t)0)); return; }