Skip to content

Commit

Permalink
esp32-fix-empty-logs(#35939) (#35965)
Browse files Browse the repository at this point in the history
  • Loading branch information
mokap13 authored and pull[bot] committed Nov 13, 2024
1 parent 88a4b51 commit 17a0f24
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/platform/ESP32/Logging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,28 +29,28 @@ void LogV(const char * module, uint8_t category, const char * msg, va_list v)
{
case kLogCategory_Error: {
{
printf(LOG_COLOR_E "E (%" PRIu32 ") %s: ", esp_log_timestamp(), tag);
esp_log_write(ESP_LOG_ERROR, tag, LOG_COLOR_E "E (%" PRIu32 ") %s: ", esp_log_timestamp(), tag);
esp_log_writev(ESP_LOG_ERROR, tag, msg, v);
printf(LOG_RESET_COLOR "\n");
esp_log_write(ESP_LOG_ERROR, tag, LOG_RESET_COLOR "\n");
}
}
break;

case kLogCategory_Progress:
default: {
{
printf(LOG_COLOR_I "I (%" PRIu32 ") %s: ", esp_log_timestamp(), tag);
esp_log_write(ESP_LOG_INFO, tag, LOG_COLOR_I "I (%" PRIu32 ") %s: ", esp_log_timestamp(), tag);
esp_log_writev(ESP_LOG_INFO, tag, msg, v);
printf(LOG_RESET_COLOR "\n");
esp_log_write(ESP_LOG_INFO, tag, LOG_RESET_COLOR "\n");
}
}
break;

case kLogCategory_Detail: {
{
printf(LOG_COLOR_D "D (%" PRIu32 ") %s: ", esp_log_timestamp(), tag);
esp_log_write(ESP_LOG_DEBUG, tag, LOG_COLOR_D "D (%" PRIu32 ") %s: ", esp_log_timestamp(), tag);
esp_log_writev(ESP_LOG_DEBUG, tag, msg, v);
printf(LOG_RESET_COLOR "\n");
esp_log_write(ESP_LOG_DEBUG, tag, LOG_RESET_COLOR "\n");
}
}
break;
Expand Down

0 comments on commit 17a0f24

Please sign in to comment.