mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-09 21:17:06 +03:00
refactored check if logfile is enabled. error messages always get logged now
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user