summaryrefslogtreecommitdiff
path: root/bin/swift-bench
diff options
context:
space:
mode:
authorJohn Dickinson <me@not.mn>2013-12-02 11:54:31 -0800
committerJohn Dickinson <me@not.mn>2013-12-02 11:54:31 -0800
commitcf0f1d1da9b087d7ee40e73e8c1f3c6b7fdf2d38 (patch)
tree764fe717e91547e79e66be4d2f37fef4dbda8e1d /bin/swift-bench
parentb207aaca07733b1c5719e182c244906d20bf28b9 (diff)
downloadswift-bench-cf0f1d1da9b087d7ee40e73e8c1f3c6b7fdf2d38.tar.gz
fixed log formatter issues
Change-Id: Ie567b59943029f3ae569576b5c8f1d0942a36a0a
Diffstat (limited to 'bin/swift-bench')
-rwxr-xr-xbin/swift-bench6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/swift-bench b/bin/swift-bench
index b3a22e0..d917360 100755
--- a/bin/swift-bench
+++ b/bin/swift-bench
@@ -161,7 +161,7 @@ if __name__ == '__main__':
sys.exit('Termination signal received.')
signal.signal(signal.SIGTERM, sigterm)
- logger = logging.getLogger(__name__)
+ logger = logging.getLogger('swift-bench')
logger.propagate = False
logger.setLevel({
'debug': logging.DEBUG,
@@ -172,8 +172,8 @@ if __name__ == '__main__':
options.log_level.lower(), logging.INFO))
loghandler = logging.StreamHandler()
logger.addHandler(loghandler)
- logformat = logging.Formatter('%(server)s %(asctime)s %(levelname)s '
- '%(message)s')
+ logformat = logging.Formatter(
+ 'swift-bench %(asctime)s %(levelname)s %(message)s')
loghandler.setFormatter(logformat)
if options.use_proxy: