I have a script working with multiple modules that include loggers (lets assume modules A
and B
).
When executing, functions of A
will automatically create a logger, but to keep things tidy I would like messages from module B
only to be displayed in my stdout.
Is there a convenient way to disable all print statements for every function / class coming from module A
, without explicitly referring to the function that prints? Im thinking about something like a line of code at the start of the script handling that.
Many thanks!