Skip to content

Commit c237619

Browse files
committed
Fix in log selection
1 parent 2e81c8a commit c237619

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

MLC/Log/log.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,13 @@
3131
"conf",
3232
"logging.{0}.conf".format(os_platform.lower())])
3333

34-
if os.path.isfile(log_file):
34+
if not os.path.isfile(log_file):
3535
print "Platform {0} is not supported. Using default logging file.".format(os_platform)
3636
log_file = os.path.join(*[os.path.dirname(os.path.realpath(__file__)),
3737
"..",
3838
"..",
3939
"conf",
4040
"logging.default.conf"])
41-
print log_file
4241
logger_ = None
4342
logging.config.fileConfig(log_file)
4443

0 commit comments

Comments
 (0)