Skip to content

Commit

Permalink
Revert "esp32-fix-empty-logs(project-chip#35939) (project-chip#35965)"
Browse files Browse the repository at this point in the history
This reverts commit 2a19f57.
  • Loading branch information
shubhamdp authored Oct 11, 2024
1 parent a76cc9b commit 0f4bba0
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: {
{
esp_log_write(ESP_LOG_ERROR, tag, LOG_COLOR_E "E (%" PRIu32 ") %s: ", esp_log_timestamp(), tag);
printf(LOG_COLOR_E "E (%" PRIu32 ") %s: ", esp_log_timestamp(), tag);
esp_log_writev(ESP_LOG_ERROR, tag, msg, v);
esp_log_write(ESP_LOG_ERROR, tag, LOG_RESET_COLOR "\n");
printf(LOG_RESET_COLOR "\n");
}
}
break;

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

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

0 comments on commit 0f4bba0

Please sign in to comment.