diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-09-11 08:43:47 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-09-11 08:43:47 +0300 |
commit | c8a8d83c4fc5978ccf79262e3017b45d9f1e320b (patch) | |
tree | 37767b0c10f950d2eba603baf62130dbc7d6a80a | |
parent | 9d2aead2817ef2a7b96819a9d9574c75b9a3948c (diff) | |
download | subplot-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.py | 2 |
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): |