summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-09-11 08:43:47 +0300
committerLars Wirzenius <liw@liw.fi>2020-09-11 08:43:47 +0300
commitc8a8d83c4fc5978ccf79262e3017b45d9f1e320b (patch)
tree37767b0c10f950d2eba603baf62130dbc7d6a80a
parent9d2aead2817ef2a7b96819a9d9574c75b9a3948c (diff)
downloadsubplot-c8a8d83c4fc5978ccf79262e3017b45d9f1e320b.tar.gz
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.
-rw-r--r--templates/python/context.py2
1 files changed, 1 insertions, 1 deletions
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):