Skip to content

Commit

Permalink
use user-defined allocator to configure logging. (ros2#1047)
Browse files Browse the repository at this point in the history
Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
  • Loading branch information
fujitatomoya authored and danthony06 committed Jun 14, 2023
1 parent 5bd633e commit 197da09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rcl/src/rcl/logging.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ rcl_logging_configure_with_output_handler(
RCL_CHECK_ARGUMENT_FOR_NULL(global_args, RCL_RET_INVALID_ARGUMENT);
RCL_CHECK_ALLOCATOR_WITH_MSG(allocator, "invalid allocator", return RCL_RET_INVALID_ARGUMENT);
RCL_CHECK_ARGUMENT_FOR_NULL(output_handler, RCL_RET_INVALID_ARGUMENT);
RCUTILS_LOGGING_AUTOINIT;
RCUTILS_LOGGING_AUTOINIT_WITH_ALLOCATOR(*allocator);
g_logging_allocator = *allocator;
int default_level = -1;
rcl_log_levels_t * log_levels = &global_args->impl->log_levels;
Expand Down

0 comments on commit 197da09

Please sign in to comment.