From d706610a7bfd765f104fb92dfb221e5af0b2044e Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 2 Dec 2014 14:26:12 +0100 Subject: [PATCH] path-walker: use real logging --- modules/blendfile_path_walker.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/modules/blendfile_path_walker.py b/modules/blendfile_path_walker.py index 166857b..5762abf 100644 --- a/modules/blendfile_path_walker.py +++ b/modules/blendfile_path_walker.py @@ -46,13 +46,9 @@ class C_defs: if VERBOSE: - _A = open("/tmp/a.log", 'w') - - class log_deps: - @staticmethod - def info(msg): - _A.write(msg) - _A.write("\n") + import logging + log_deps = logging.getLogger("path_walker") + del logging def set_as_str(s): if s is None: