make log location parameter const (#451)
This commit is contained in:
parent
168d75cf1e
commit
d8abea55ec
1 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,7 @@ rclcpp::Logger g_logger = rclcpp::get_logger("name");
|
||||||
|
|
||||||
struct LogEvent
|
struct LogEvent
|
||||||
{
|
{
|
||||||
rcutils_log_location_t * location;
|
const rcutils_log_location_t * location;
|
||||||
int level;
|
int level;
|
||||||
std::string name;
|
std::string name;
|
||||||
std::string message;
|
std::string message;
|
||||||
|
@ -49,7 +49,7 @@ public:
|
||||||
rcutils_logging_set_default_logger_level(RCUTILS_LOG_SEVERITY_DEBUG);
|
rcutils_logging_set_default_logger_level(RCUTILS_LOG_SEVERITY_DEBUG);
|
||||||
|
|
||||||
auto rcutils_logging_console_output_handler = [](
|
auto rcutils_logging_console_output_handler = [](
|
||||||
rcutils_log_location_t * location,
|
const rcutils_log_location_t * location,
|
||||||
int level, const char * name, const char * format, va_list * args) -> void
|
int level, const char * name, const char * format, va_list * args) -> void
|
||||||
{
|
{
|
||||||
g_log_calls += 1;
|
g_log_calls += 1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue