[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [stem/master] Indenting multi-line logging output
commit ad5483352456ab3556068baa43db4fa97c008760
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date: Wed Jan 4 17:41:10 2012 -0800
Indenting multi-line logging output
When sending logging to stdout indenting the lines in multi-line log entries to
make them far more readable.
---
run_tests.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/run_tests.py b/run_tests.py
index c0ab23d..2b1cd1e 100755
--- a/run_tests.py
+++ b/run_tests.py
@@ -111,8 +111,8 @@ def print_divider(msg, is_header = False):
def print_logging(logging_buffer):
if not logging_buffer.is_empty():
- for line in logging_buffer:
- print term.format(line, term.Color.MAGENTA)
+ for entry in logging_buffer:
+ print term.format(entry.replace("\n", "\n "), term.Color.MAGENTA)
print
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits