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:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user