Pretty much what it says in the title. The relevant line of code is here. Since it's logged with the logging module instead of the warnings module, the COLCON_WARNINGS and PYTHONWARNINGS environment variables have no effect. This also means that if there are any other warnings provided by the logging module, they cannot be easily silenced either. In my project, I'm using nix-ros-overlay to provide a build environment, and due to the way it sets it up, there's a barrage of the aforementioned warnings at the start of every colcon build, which can easily hide genuinely useful warnings and errors.
Perhaps a flag (or new environment variable?) should be added to filter/silence these warnings, especially since they're going to stderr. At the moment I'm piping stderr through a filter to remove the warnings, but I'm not super happy with this solution.
Pretty much what it says in the title. The relevant line of code is here. Since it's logged with the
loggingmodule instead of thewarningsmodule, theCOLCON_WARNINGSandPYTHONWARNINGSenvironment variables have no effect. This also means that if there are any other warnings provided by theloggingmodule, they cannot be easily silenced either. In my project, I'm using nix-ros-overlay to provide a build environment, and due to the way it sets it up, there's a barrage of the aforementioned warnings at the start of everycolcon build, which can easily hide genuinely useful warnings and errors.Perhaps a flag (or new environment variable?) should be added to filter/silence these warnings, especially since they're going to
stderr. At the moment I'm pipingstderrthrough a filter to remove the warnings, but I'm not super happy with this solution.