Skip to content

Setting log Debug level works only in code #488

Open
@ralwing

Description

@ralwing

Bug report

Required Info:

  • Operating System:
    • Ubuntu 20.04...)
  • Installation type:
    • official foxy docker image
  • Version or commit hash:
  • DDS implementation: rmw_fastrtps_cpp
  • Client library (if applicable):

Steps to reproduce issue

create a ComposableNode

import launch
from launch_ros.actions import ComposableNodeContainer, Node
from launch_ros.descriptions import ComposableNode

def generate_launch_description():
    container = ComposableNodeContainer(
        name="container",
        namespace="",
        package="rclcpp_components",
        executable="component_container",
        composable_node_descriptions=[

            ComposableNode(
                package="localization",
                plugin="LocalizationNode",
                name="localization"
            )
        ],
        arguments=['--ros-args', '--log-level', 'DEBUG'] 
    )

    return launch.LaunchDescription([container])

Expected behavior

The log level is set to debug

Actual behavior

The log level doesn't change

Additional information

There are some topics related to this on answers.ros.org:
https://answers.ros.org/question/311471/selecting-log-level-in-ros2-launch-file/
https://answers.ros.org/question/370288/ros2-how-do-you-set-verbosity-of-a-composable-node/#370389

#383

Setting log level to at least info works fine, setting log level in source code also works:

rcutils_ret_t rcutils_logging_set_logger_level (const char *name, int level);

Feature request

Allow setting Debug severity log.

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions