summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2019-03-20 19:56:59 +0000
committerBenjamin Schubert <ben.c.schubert@gmail.com>2019-03-20 19:56:59 +0000
commit3dffb4a6185b75bc07dded78523e3e95d3c78c5f (patch)
treef50a00c3f2fa5eebbb6c2eda0910e6191090670b
parent408c38a60f78c54ebaf2b6651cc3898d471cab15 (diff)
downloadbuildstream-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--.pylintrc2
-rw-r--r--buildstream/_cas/casserver.py2
2 files changed, 1 insertions, 3 deletions
diff --git a/.pylintrc b/.pylintrc
index 11532bc70..0cdb7586e 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -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.")