Fix logging error; it outputted the JSON data rather than a count

This commit is contained in:
Phil Gyford
2019-10-10 11:43:42 +01:00
parent 54b1c7c476
commit 47fda41d37

View File

@@ -60,7 +60,7 @@ class FeedGenerator:
checkins = self._get_recent_checkins()
plural = "" if len(checkins) == 1 else "s"
logger.info("Fetched {} checkin{} from the API".format(checkins, plural))
logger.info("Fetched {} checkin{} from the API".format(len(checkins), plural))
if kind == "ics":
filepath = self._generate_ics_file(checkins)