From c3d0cb04b64eb425f798628c02d182c34fb8d1b2 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Fri, 11 Oct 2019 13:04:58 +0100 Subject: [PATCH] Pass all arguments from debug into print Allows for multi-argument debug() statements without ugly + or %s operators. --- utils/logging/debug.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/logging/debug.py b/utils/logging/debug.py index 5a7b067..4b05602 100644 --- a/utils/logging/debug.py +++ b/utils/logging/debug.py @@ -1,7 +1,7 @@ import main # we need a seperate module to log.py, as log.py is imported by main.py, and we need to access main # to read the setting -def debug(data): +def debug(*data): if main.config["Debug"]: - print("[DEBUG]", data) + print("[DEBUG]", *data)