Skip to content

Commit

Permalink
AP_Logger: use GCS_SEND_TEXT for error message rather than stdout
Browse files Browse the repository at this point in the history
This one is line noise before this patch:
Failed to create log directory /APM/LOGS : ENOSPC
  • Loading branch information
peterbarker committed Jan 30, 2025
1 parent dba4136 commit 061f382
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_Logger/AP_Logger_File.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ void AP_Logger_File::ensure_log_directory_exists()
ret = AP::FS().mkdir(_log_directory);
}
if (ret == -1 && errno != EEXIST) {
printf("Failed to create log directory %s : %s\n", _log_directory, strerror(errno));
GCS_SEND_TEXT(MAV_SEVERITY_WARNING, "Failed to create log directory %s : %s", _log_directory, strerror(errno));
}
}

Expand Down

0 comments on commit 061f382

Please sign in to comment.