From 62f58a842e5c71dbc93104f491fad68b429f3dc3 Mon Sep 17 00:00:00 2001 From: Hammy Date: Sat, 13 Feb 2021 18:52:35 +0000 Subject: [PATCH] Add logger to log twitter actions --- bot/winston.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bot/winston.py b/bot/winston.py index c2f2594..684c00f 100644 --- a/bot/winston.py +++ b/bot/winston.py @@ -76,8 +76,10 @@ class Winston: """Follows someone based on given id""" self.bot.create_friendship(screen_name=username) + logger.info(f"Followed User: " f'{username}') def like_tweet(self, tweet_id): """Likes a tweet based on it's ID""" self.bot.create_favorite(id=tweet_id) + logger.info(f"Liked Tweet, Tweet ID: " f'{tweet_id}')