Open jas2061461 opened 5 years ago
I have faced the same issue too, you can turn off this feature inside the logging.yml disable_existing_loggers: False and also disable the propagation in your script after creating jsnapy object from class to avoid duplicate logs: logging.propagate = False
Description of Issue/Question
Jsnapy is overwrite the logger I've defined. I believe this is similar to: https://github.com/Juniper/jsnapy/issues/263
Workarounds (besides printing and writing to a file)
Sample code:
This produces:
If I comment out "js = SnapAdmin()"
Additional details
Re-instantiating the logger after invoking SnapAdmin doesn't work when I'm looping through devices. It only works for the first device.
PIP List
Steps to Reproduce Issue
(Include debug logs if possible and relevant. Error trace would be helpful too)
Versions Report
(Provided by running
jsnapy --version
. Please also mention python version.)