[IMP] code auto reload: logger.error in case of syntax error

This commit is contained in:
Fabien Meghazi
2014-08-14 10:01:50 +02:00
parent a094482ab9
commit dd862b5edd
+1 -1
View File
@@ -131,7 +131,7 @@ class FSWatcher(object):
source = open(path, 'rb').read() + '\n'
compile(source, path, 'exec')
except SyntaxError:
_logger.info('autoreload: python code change detected, SyntaxError in %s', path)
_logger.error('autoreload: python code change detected, SyntaxError in %s', path)
else:
_logger.info('autoreload: python code updated, autoreload activated')
restart()