From c10ee15fe0955a89be215f84e3c3a7843a7a6d2f Mon Sep 17 00:00:00 2001 From: Yulia Portnova Date: Thu, 18 Feb 2016 13:42:43 +0200 Subject: [PATCH] Log format change in simulator.py Change-Id: I046717f9ea7f203f7e5837c7b62a6a7d7cc7bb4d --- tools/simulator.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/simulator.py b/tools/simulator.py index c693c8302..4d75a447a 100755 --- a/tools/simulator.py +++ b/tools/simulator.py @@ -315,7 +315,9 @@ def notifier(_id, transport, messages, wait_after_msg, timeout): def _setup_logging(is_debug): log_level = logging.DEBUG if is_debug else logging.INFO - logging.basicConfig(stream=sys.stdout, level=log_level) + logging.basicConfig( + stream=sys.stdout, level=log_level, + format="%(asctime)-15s %(levelname)s %(name)s %(message)s") logging.getLogger().handlers[0].addFilter(LoggingNoParsingFilter()) for i in ['kombu', 'amqp', 'stevedore', 'qpid.messaging' 'oslo.messaging._drivers.amqp', ]: