From c8a8d83c4fc5978ccf79262e3017b45d9f1e320b Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 11 Sep 2020 08:43:47 +0300 Subject: feat(python template): use DEBUG level and clarify Context logs Log changes to Contexts at DEBUG level, and make the log message a little clearer. Previously, the foo=bar message was confusing enough to me, who wrote, that I misinterpreted in the midst of an intense debugging session. --- templates/python/context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/python/context.py b/templates/python/context.py index 8e89195..fac49de 100644 --- a/templates/python/context.py +++ b/templates/python/context.py @@ -16,7 +16,7 @@ class Context: return self._vars[key] def __setitem__(self, key, value): - logging.info("Context: {}={!r}".format(key, value)) + logging.debug("Context: key {!r} set to {!r}".format(key, value)) self._vars[key] = value def __contains__(self, key): -- cgit v1.2.1