diff options
| author | 2020-02-28 07:28:19 -0800 | |
|---|---|---|
| committer | 2020-03-22 15:54:40 -0700 | |
| commit | f07221b8135eb067490f51ee79832893cd4ba610 (patch) | |
| tree | 9006781d187b93c1d84a926587cf2f975fe6f8ee | |
| parent | HelpChannels: notify helpers if out of channels (diff) | |
HelpChannels: log previous position when getting alphabetical position
| -rw-r--r-- | bot/cogs/help_channels.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bot/cogs/help_channels.py b/bot/cogs/help_channels.py index f9fe9e6de..85015b5e9 100644 --- a/bot/cogs/help_channels.py +++ b/bot/cogs/help_channels.py @@ -222,7 +222,11 @@ class HelpChannels(Scheduler, commands.Cog): log.warning(f"Channel #{channel.name} ({channel.id}) doesn't have the prefix {prefix}.") position = None - log.trace(f"Position of #{channel.name} ({channel.id}) in Dormant will be {position}.") + log.trace( + f"Position of #{channel.name} ({channel.id}) in Dormant will be {position} " + f"(was {channel.position})." + ) + return position @staticmethod |