aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--interpreter.py2
-rw-r--r--mlog.py5
2 files changed, 6 insertions, 1 deletions
diff --git a/interpreter.py b/interpreter.py
index 2e1cced..474c2b1 100644
--- a/interpreter.py
+++ b/interpreter.py
@@ -1052,7 +1052,7 @@ class Interpreter():
self.validate_arguments(args, 2, [str, Executable])
t = Test(args[0], args[1])
self.build.tests.append(t)
- mlog.log('Adding test "', mlog.bold(args[0]), '".', sep='')
+ mlog.debug('Adding test "', mlog.bold(args[0]), '".', sep='')
def func_headers(self, node, args, kwargs):
for a in args:
diff --git a/mlog.py b/mlog.py
index 666fa10..5cac222 100644
--- a/mlog.py
+++ b/mlog.py
@@ -62,6 +62,11 @@ def process_markup(args, keep):
arr.append(str(arg))
return arr
+def debug(*args, **kwargs):
+ arr = process_markup(args, False)
+ if log_file is not None:
+ print(*arr, file=log_file, **kwargs) # Log file never gets ANSI codes.
+
def log(*args, **kwargs):
arr = process_markup(args, False)
if log_file is not None: