Beispiel #1
0
 def _run_monitor():
     logger = setup_logger(loglevel, logfile)
     monitor = MonitorService(logger=logger, http_port=http_port)
     try:
         monitor.start()
     except Exception, e:
         emergency_error(logfile,
                 "celerymon raised exception %s: %s\n%s" % (
                         e.__class__, e, traceback.format_exc()))
Beispiel #2
0
        def _run_monitor():
            app.log.setup_logging_subsystem(loglevel=loglevel,
                                            logfile=logfile)
            logger = app.log.get_default_logger(name="celery.mon")
            monitor = MonitorService(logger=logger,
                                     http_port=http_port,
                                     http_address=http_address)

            try:
                monitor.start()
            except Exception, exc:
                logger.error("celerymon raised exception %r\n%s" % (
                                exc, traceback.format_exc()))