This commit is contained in:
CaCO3
2022-10-27 13:13:23 +02:00
parent c4bbd7c545
commit 32748e3182
7 changed files with 3 additions and 18 deletions

View File

@@ -120,7 +120,7 @@ void ClassLogFile::WriteToDedicatedFile(std::string _fn, esp_log_level_t level,
std::string zwtime;
std::string logline = "";
if (!doLogFile){
if (!doLogFile && level != ESP_LOG_ERROR){ // Only write to file if logfile is enabled or its an error message
return;
}