Lines Matching refs:logging
40 import logging
41 import logging.handlers
123 logging.debug('[Bot %s] Initialize: bot is not running',
126 logging.debug('[Bot %s] Initialize: bot is running '
148 logging.debug('[Bot %s] check process running: %s',
181 logging.error('[Bot %s] %s, updating pid file',
196 logging.info(
200 logging.debug('[Bot %s] Bootstrap bot in %s', self.bot_id, self.bot_dir)
205 logging.debug('[Bot %s] Getting bot code from: %s/bot_code',
209 logging.debug('[Bot %s] Calling command: %s', self. bot_id, cmd)
215 logging.info('[Bot %s] Created bot (pid: %d)', self.bot_id, self.pid)
221 logging.info('[Bot %s] Skip killing bot, Bot is not running',
225 logging.info('[Bot %s] killing bot (pid: %d)',
234 logging.debug('[Bot %s] Waiting %d secs for bot to finish'
239 logging.error(
275 logging.error('[BotManager] Failed to start Bot %s: %s',
284 logging.info('Wait 3 seconds for process creation to complete.')
303 logging.error(msg)
313 logging.debug('[BotManager] Check bot counts: %s', str(cmd))
323 logging.info(
327 logging.info('[BotManager] Checking all bots')
383 """Setup logging.
388 log_formatter = logging.Formatter(LOGGING_FORMAT)
390 handler = logging.StreamHandler()
392 handler = logging.handlers.RotatingFileHandler(
396 logger = logging.getLogger()
397 log_level = logging.DEBUG if verbose else logging.INFO
411 logging.error(
421 logging.info('Connecting to %s', swarming_proxy)