We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1594562 commit 371c8bfCopy full SHA for 371c8bf
1 file changed
src/logging.c
@@ -87,6 +87,10 @@ rcutils_ret_t rcutils_logging_initialize_with_allocator(rcutils_allocator_t allo
87
g_rcutils_logging_output_format_string[chars_to_copy] = '\0';
88
} else {
89
if (NULL != ret_str) {
90
+ if (rcutils_error_is_set()) {
91
+ fprintf(stderr, "Overwriting error message: %s\n", rcutils_get_error_string_safe());
92
+ rcutils_reset_error();
93
+ }
94
RCUTILS_SET_ERROR_MSG(
95
"Failed to get output format from env. variable. Using default output format.\n",
96
g_rcutils_logging_allocator);
0 commit comments