diff options
author | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-03-20 19:56:59 +0000 |
---|---|---|
committer | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-03-20 19:56:59 +0000 |
commit | 3dffb4a6185b75bc07dded78523e3e95d3c78c5f (patch) | |
tree | f50a00c3f2fa5eebbb6c2eda0910e6191090670b | |
parent | 408c38a60f78c54ebaf2b6651cc3898d471cab15 (diff) | |
download | buildstream-bschubert/lint/logging-format.tar.gz |
casserver.py: fix logging-format-interpolation error and enablebschubert/lint/logging-format
This enables the "logging-format-interpolation" pylint error check
-rw-r--r-- | .pylintrc | 2 | ||||
-rw-r--r-- | buildstream/_cas/casserver.py | 2 |
2 files changed, 1 insertions, 3 deletions
@@ -109,8 +109,6 @@ disable=##################################### # Messages that report warnings which should be addressed # ########################################################### - logging-format-interpolation, - cyclic-import, # Enable the message, report, category or checker with the given id(s). You can diff --git a/buildstream/_cas/casserver.py b/buildstream/_cas/casserver.py index 5482dae86..8f8ef4efe 100644 --- a/buildstream/_cas/casserver.py +++ b/buildstream/_cas/casserver.py @@ -520,7 +520,7 @@ class _CacheCleaner: self.__cas.clean_up_refs_until(last_mtime) if removed_size > 0: - logging.info("Successfully removed {} bytes from the cache".format(removed_size)) + logging.info("Successfully removed %d bytes from the cache", removed_size) else: logging.info("No artifacts were removed from the cache.") |