Closed nirgoren closed 4 months ago
Hi @nirgoren ,
Thank you for the feedback.
The behavior is expected. As mentioned, torchdistill.core.forward_hook
indirectly imports torchdistill/common/constant.py
and sets basicConfig.
I am currently on leave and will think about some workaround.
Hi @nirgoren
It should be resolved now. The update will be available in the next PyPI package release.
Feel free to re-open the issue if it doesn't resolve your issue.
Describe the bug Importing
ForwardHookManager
viafrom torchdistill.core.forward_hook import ForwardHookManager
causes logging to file not to work properly.The messages do not go to the log file. Commenting out
from torchdistill.core.forward_hook import ForwardHookManager
, the messages go to the log file as expected.To Reproduce Provide
Expected behavior A clear and concise description of what you expected to happen. The messages should go the log file, global logging behaviour should not change due to the import.
Environment (please complete the following information):
Additional context Probably related to the logging configuration in
torchdistill/common/constant.py