Commit b18c078a authored by Zhicheng Yan's avatar Zhicheng Yan Committed by Facebook GitHub Bot
Browse files

remove logging using logger at exit

Summary:
Pull Request resolved: https://github.com/facebookresearch/d2go/pull/628

At the exit, file descriptor in the logger for info level logging has already been closed. Calling **logger.info()** will raise an exception. Thus, we remove it.

Reviewed By: ayushidalmia, wat3rBro

Differential Revision: D50488097

fbshipit-source-id: 42b568e2e29d837424c3b2e42a5a33c067651ec3
parent 3c724416
...@@ -73,7 +73,6 @@ class AdhocDatasetManager: ...@@ -73,7 +73,6 @@ class AdhocDatasetManager:
@atexit.register @atexit.register
def _atexit(): def _atexit():
for ds in AdhocDatasetManager._REGISTERED.values(): for ds in AdhocDatasetManager._REGISTERED.values():
logger.info("Remove remaining adhoc dataset: {}".format(ds.new_ds_name))
ds.cleanup() ds.cleanup()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment