diff options
| author | 2020-03-28 16:33:20 +0100 | |
|---|---|---|
| committer | 2020-03-28 16:35:36 +0100 | |
| commit | 5feabe642ed5b685c7aa9515bc70ff4ff8b278bc (patch) | |
| tree | 34643f1aad8fbd19f045bcaeffda897d58661599 /bot/exts/halloween | |
| parent | Merge master: sentry sdk, updated contributing docs (diff) | |
Deseasonify: log in `add_cog` rather than in each `setup`
The previous system required each extension's `setup` func to log
that the cog was loaded. This leads to inconsistent messages all
trying to convey the same thing, variable logger names in the output
file are difficult to read, and several extensions were not logging
at all.
By logging directly in the `add_cog` method, we reduce code repetition,
ensure consistent format, and remove the responsibility to remember
that a log should be made.
Diffstat (limited to 'bot/exts/halloween')
| -rw-r--r-- | bot/exts/halloween/8ball.py | 1 | ||||
| -rw-r--r-- | bot/exts/halloween/candy_collection.py | 1 | ||||
| -rw-r--r-- | bot/exts/halloween/hacktober-issue-finder.py | 1 | ||||
| -rw-r--r-- | bot/exts/halloween/hacktoberstats.py | 1 | ||||
| -rw-r--r-- | bot/exts/halloween/halloween_facts.py | 1 | ||||
| -rw-r--r-- | bot/exts/halloween/halloweenify.py | 1 | ||||
| -rw-r--r-- | bot/exts/halloween/monsterbio.py | 1 | ||||
| -rw-r--r-- | bot/exts/halloween/monstersurvey.py | 1 | ||||
| -rw-r--r-- | bot/exts/halloween/scarymovie.py | 1 | ||||
| -rw-r--r-- | bot/exts/halloween/spookyavatar.py | 1 | ||||
| -rw-r--r-- | bot/exts/halloween/spookygif.py | 1 | ||||
| -rw-r--r-- | bot/exts/halloween/spookyrating.py | 1 | ||||
| -rw-r--r-- | bot/exts/halloween/spookyreact.py | 1 | ||||
| -rw-r--r-- | bot/exts/halloween/spookysound.py | 1 | ||||
| -rw-r--r-- | bot/exts/halloween/timeleft.py | 1 |
15 files changed, 0 insertions, 15 deletions
diff --git a/bot/exts/halloween/8ball.py b/bot/exts/halloween/8ball.py index 2e1c2804..1df48fbf 100644 --- a/bot/exts/halloween/8ball.py +++ b/bot/exts/halloween/8ball.py @@ -31,4 +31,3 @@ class SpookyEightBall(commands.Cog): def setup(bot: commands.Bot) -> None: """Spooky Eight Ball Cog Load.""" bot.add_cog(SpookyEightBall(bot)) - log.info("SpookyEightBall cog loaded") diff --git a/bot/exts/halloween/candy_collection.py b/bot/exts/halloween/candy_collection.py index 3f2b895e..00061fc2 100644 --- a/bot/exts/halloween/candy_collection.py +++ b/bot/exts/halloween/candy_collection.py @@ -222,4 +222,3 @@ class CandyCollection(commands.Cog): def setup(bot: commands.Bot) -> None: """Candy Collection game Cog load.""" bot.add_cog(CandyCollection(bot)) - log.info("CandyCollection cog loaded") diff --git a/bot/exts/halloween/hacktober-issue-finder.py b/bot/exts/halloween/hacktober-issue-finder.py index f15a665a..3a9d38d2 100644 --- a/bot/exts/halloween/hacktober-issue-finder.py +++ b/bot/exts/halloween/hacktober-issue-finder.py @@ -108,4 +108,3 @@ class HacktoberIssues(commands.Cog): def setup(bot: commands.Bot) -> None: """Hacktober issue finder Cog Load.""" bot.add_cog(HacktoberIssues(bot)) - log.info("hacktober-issue-finder cog loaded") diff --git a/bot/exts/halloween/hacktoberstats.py b/bot/exts/halloween/hacktoberstats.py index 5dfa2f51..0c1c837c 100644 --- a/bot/exts/halloween/hacktoberstats.py +++ b/bot/exts/halloween/hacktoberstats.py @@ -339,4 +339,3 @@ class HacktoberStats(commands.Cog): def setup(bot: commands.Bot) -> None: """Hacktoberstats Cog load.""" bot.add_cog(HacktoberStats(bot)) - log.info("HacktoberStats cog loaded") diff --git a/bot/exts/halloween/halloween_facts.py b/bot/exts/halloween/halloween_facts.py index 222768f4..44a66ab2 100644 --- a/bot/exts/halloween/halloween_facts.py +++ b/bot/exts/halloween/halloween_facts.py @@ -56,4 +56,3 @@ class HalloweenFacts(commands.Cog): def setup(bot: commands.Bot) -> None: """Halloween facts Cog load.""" bot.add_cog(HalloweenFacts(bot)) - log.info("HalloweenFacts cog loaded") diff --git a/bot/exts/halloween/halloweenify.py b/bot/exts/halloween/halloweenify.py index dfcc2b1e..5c433a81 100644 --- a/bot/exts/halloween/halloweenify.py +++ b/bot/exts/halloween/halloweenify.py @@ -49,4 +49,3 @@ class Halloweenify(commands.Cog): def setup(bot: commands.Bot) -> None: """Halloweenify Cog load.""" bot.add_cog(Halloweenify(bot)) - log.info("Halloweenify cog loaded") diff --git a/bot/exts/halloween/monsterbio.py b/bot/exts/halloween/monsterbio.py index bfa8a026..016a66d1 100644 --- a/bot/exts/halloween/monsterbio.py +++ b/bot/exts/halloween/monsterbio.py @@ -53,4 +53,3 @@ class MonsterBio(commands.Cog): def setup(bot: commands.Bot) -> None: """Monster bio Cog load.""" bot.add_cog(MonsterBio(bot)) - log.info("MonsterBio cog loaded.") diff --git a/bot/exts/halloween/monstersurvey.py b/bot/exts/halloween/monstersurvey.py index 12e1d022..27da79b6 100644 --- a/bot/exts/halloween/monstersurvey.py +++ b/bot/exts/halloween/monstersurvey.py @@ -203,4 +203,3 @@ class MonsterSurvey(Cog): def setup(bot: Bot) -> None: """Monster survey Cog load.""" bot.add_cog(MonsterSurvey(bot)) - log.info("MonsterSurvey cog loaded") diff --git a/bot/exts/halloween/scarymovie.py b/bot/exts/halloween/scarymovie.py index 3823a3e4..c80e0298 100644 --- a/bot/exts/halloween/scarymovie.py +++ b/bot/exts/halloween/scarymovie.py @@ -129,4 +129,3 @@ class ScaryMovie(commands.Cog): def setup(bot: commands.Bot) -> None: """Scary movie Cog load.""" bot.add_cog(ScaryMovie(bot)) - log.info("ScaryMovie cog loaded") diff --git a/bot/exts/halloween/spookyavatar.py b/bot/exts/halloween/spookyavatar.py index 268de3fb..2d7df678 100644 --- a/bot/exts/halloween/spookyavatar.py +++ b/bot/exts/halloween/spookyavatar.py @@ -50,4 +50,3 @@ class SpookyAvatar(commands.Cog): def setup(bot: commands.Bot) -> None: """Spooky avatar Cog load.""" bot.add_cog(SpookyAvatar(bot)) - log.info("SpookyAvatar cog loaded") diff --git a/bot/exts/halloween/spookygif.py b/bot/exts/halloween/spookygif.py index 818de8cd..f402437f 100644 --- a/bot/exts/halloween/spookygif.py +++ b/bot/exts/halloween/spookygif.py @@ -36,4 +36,3 @@ class SpookyGif(commands.Cog): def setup(bot: commands.Bot) -> None: """Spooky GIF Cog load.""" bot.add_cog(SpookyGif(bot)) - log.info("SpookyGif cog loaded") diff --git a/bot/exts/halloween/spookyrating.py b/bot/exts/halloween/spookyrating.py index 7f78f536..1a48194e 100644 --- a/bot/exts/halloween/spookyrating.py +++ b/bot/exts/halloween/spookyrating.py @@ -64,4 +64,3 @@ class SpookyRating(commands.Cog): def setup(bot: commands.Bot) -> None: """Spooky Rating Cog load.""" bot.add_cog(SpookyRating(bot)) - log.info("SpookyRating cog loaded") diff --git a/bot/exts/halloween/spookyreact.py b/bot/exts/halloween/spookyreact.py index 16f18019..a3896cfb 100644 --- a/bot/exts/halloween/spookyreact.py +++ b/bot/exts/halloween/spookyreact.py @@ -73,4 +73,3 @@ class SpookyReact(Cog): def setup(bot: Bot) -> None: """Spooky reaction Cog load.""" bot.add_cog(SpookyReact(bot)) - log.info("SpookyReact cog loaded") diff --git a/bot/exts/halloween/spookysound.py b/bot/exts/halloween/spookysound.py index e0676d0a..325447e5 100644 --- a/bot/exts/halloween/spookysound.py +++ b/bot/exts/halloween/spookysound.py @@ -45,4 +45,3 @@ class SpookySound(commands.Cog): def setup(bot: commands.Bot) -> None: """Spooky sound Cog load.""" bot.add_cog(SpookySound(bot)) - log.info("SpookySound cog loaded") diff --git a/bot/exts/halloween/timeleft.py b/bot/exts/halloween/timeleft.py index 8cb3f4f6..295acc89 100644 --- a/bot/exts/halloween/timeleft.py +++ b/bot/exts/halloween/timeleft.py @@ -57,4 +57,3 @@ class TimeLeft(commands.Cog): def setup(bot: commands.Bot) -> None: """Cog load.""" bot.add_cog(TimeLeft(bot)) - log.info("TimeLeft cog loaded") |