Skip to content

Commit a728158

Browse files
Apply suggestions from code review
Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com> Signed-off-by: Alex MacLean <alex@macleanfam.org>
1 parent 7eca440 commit a728158

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/test_logging_severity_with_color.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ int main(int, char **)
2222
{
2323
rcutils_ret_t ret = rcutils_logging_initialize();
2424
if (ret != RCUTILS_RET_OK) {
25-
fprintf(stderr, "error initializing logging: %s\n", rcutils_get_error_string().str);
25+
std::cerr << "error initializing logging: " << rcutils_get_error_string().str << std::endl;
2626
return -1;
2727
}
2828

2929
rcutils_ret_t status = rcutils_logging_set_logger_level("name", RCUTILS_LOG_SEVERITY_DEBUG);
3030
if (status != RCUTILS_RET_OK) {
31-
fprintf(stderr, "error setting logger level: %s\n", rcutils_get_error_string().str);
31+
std::cerr << "error setting logger level: " << rcutils_get_error_string().str << std::endl;
3232
return -1;
3333
}
3434

test/test_logging_severity_with_color.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2017 Open Source Robotics Foundation, Inc.
1+
# Copyright 2025 Open Source Robotics Foundation, Inc.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)