Error when the log_config path is false.

And it is false in default configuration for now.
Then I switch to logging.basicConfig if path is bad.

bzr revid: xavier.manach@xcg-consulting.fr-20111024143408-9zarpka33m3te2pf
This commit is contained in:
xavinsky
2011-10-24 16:34:08 +02:00
parent c3b6ba7157
commit 2e0737e830
+1 -1
View File
@@ -63,7 +63,7 @@ if __name__ == "__main__":
os.environ["TZ"] = "UTC"
if sys.version_info >= (2, 7):
if sys.version_info >= (2, 7) and os.path.exists(options.log_config):
with open(options.log_config) as file:
dct = json.load(file)
logging.config.dictConfig(dct)