Repository: cassandra-dtest
Updated Branches:
  refs/heads/master 44fd9be91 -> 413b18a87


Use string formatting instead of concatenation to handle non-string arguments 
to debug and warn helpers

patch by Joel Knighton; reviewed by Jeff Jirsa for CASSANDRA-14059


Project: http://git-wip-us.apache.org/repos/asf/cassandra-dtest/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra-dtest/commit/413b18a8
Tree: http://git-wip-us.apache.org/repos/asf/cassandra-dtest/tree/413b18a8
Diff: http://git-wip-us.apache.org/repos/asf/cassandra-dtest/diff/413b18a8

Branch: refs/heads/master
Commit: 413b18a87d9416446cf4adec5f8483ad408b3e83
Parents: 44fd9be
Author: Joel Knighton <j...@apache.org>
Authored: Mon Dec 4 18:49:29 2017 -0600
Committer: Joel Knighton <j...@apache.org>
Committed: Mon Dec 4 21:09:52 2017 -0600

----------------------------------------------------------------------
 dtest.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra-dtest/blob/413b18a8/dtest.py
----------------------------------------------------------------------
diff --git a/dtest.py b/dtest.py
index a942d12..25c52e3 100644
--- a/dtest.py
+++ b/dtest.py
@@ -178,13 +178,13 @@ def reset_environment_vars():
 
 
 def warning(msg):
-    LOG.warning(CURRENT_TEST + ' - ' + msg)
+    LOG.warning("{} - {}".format(CURRENT_TEST, msg))
     if PRINT_DEBUG:
         print "WARN: " + msg
 
 
 def debug(msg):
-    LOG.debug(CURRENT_TEST + ' - ' + msg)
+    LOG.debug("{} - {}".format(CURRENT_TEST, msg))
     if PRINT_DEBUG:
         print msg
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to