Skip to content

Commit

Permalink
Check if the logger warning causes runbot warning
Browse files Browse the repository at this point in the history
  • Loading branch information
amigrave committed Aug 11, 2014
1 parent 574247a commit d84fd8d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions openerp/service/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -882,12 +882,13 @@ def start(preload=None, stop=False):
else:
server = ThreadedServer(openerp.service.wsgi_server.application)

if watchdog and config['dev_mode']:
watcher = FSWatcher()
watcher.start()
if watchdog:
if config['dev_mode']:
watcher = FSWatcher()
watcher.start()
else:
intro = "'watchdog' module not installed."
_logger.warning("%s Asset Bundles automatic cache invalidation disabled." % intro)
# _logger.warning("%s Asset Bundles automatic cache invalidation disabled." % intro)
if config['dev_mode']:
_logger.warning("%s Code autoreload feature is disabled" % intro)

Expand Down

0 comments on commit d84fd8d

Please sign in to comment.