When I use logging
, I get duplicate entries in the log, like this:
[2022-09-22 11:35:32,079] [INFO] [My App] going to get milk...
App 13621 output: [ pid=13621, time=2022-09-22 11:35:32,079 ]: going to get milk...
The second entry, I don't need; it makes the log harder to read.
I have in the past used a log filter command:
warnings.filterwarnings('ignore', message='Unverified HTTPS request')
but I don't know how to apply a similar technique to this situation. I'm not sure where the duplicate is coming from so I don't know what to talk to to suppress it.