gazebosim / gz-common

An audio-visual library supports processing audio and video files, a graphics library can load a variety 3D mesh file formats into a generic in-memory representation, and the core library of Gazebo Common contains functionality that spans Base64 encoding/decoding to thread pools.
https://gazebosim.org
Apache License 2.0
16 stars 40 forks source link

Console debug, warning, and error msgs no longer print filename and line number #631

Closed iche033 closed 2 months ago

iche033 commented 2 months ago

Environment

Description

Filename and line number is important for debugging purposes.

Steps to reproduce

  1. Run any world with -v 4 and look at the msgs printed in console.

Output

Example output in Harmonic vs Ionic

Harmonic:

[Msg] Gazebo Sim GUI    v8.6.0
[Dbg] [gz.cc:166] Subscribing to [/gazebo/starting_world].
[Dbg] [Gui.cc:275] Waiting for subscribers to [/gazebo/starting_world]...
...
[GUI] [Wrn] [Application.cc:908] [QT] file::/EntityContextMenuPlugin/EntityContextMenuPlugin.qml:52:3: QML RenderWindowOverlay: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.

Ionic:

(2024-08-30 22:42:40.327) [info] Gazebo Sim GUI    v9.0.0~pre1
(2024-08-30 22:42:40.634) [debug] Subscribing to [/gazebo/starting_world].
(2024-08-30 22:42:40.635) [debug] Waiting for a world to be set from the GUI...
...
(2024-08-30 22:42:41.677) [warning] [GUI] [QT] file::/EntityContextMenuPlugin/EntityContextMenuPlugin.qml:52:3: QML RenderWindowOverlay: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.