Feat: Add logging to tell when refresh happens.
This commit is contained in:
@@ -11,6 +11,7 @@ from nextcord.ext import commands
|
|||||||
|
|
||||||
from dakiny_bot.classes.gitea_webhook import GiteaWebhook
|
from dakiny_bot.classes.gitea_webhook import GiteaWebhook
|
||||||
from dakiny_bot.DakinySettings import settings
|
from dakiny_bot.DakinySettings import settings
|
||||||
|
from dakiny_bot.logger import dakiny_logger
|
||||||
from dakiny_bot.utils import REPO_DIR, edit_clan_council_info, update_clan_messages
|
from dakiny_bot.utils import REPO_DIR, edit_clan_council_info, update_clan_messages
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
@@ -60,6 +61,7 @@ class ClanMessages(commands.Cog, name="Clan Messages"):
|
|||||||
self.origin.pull()
|
self.origin.pull()
|
||||||
except GitCommandError:
|
except GitCommandError:
|
||||||
# I think the git connection timed out. Get a new one.
|
# I think the git connection timed out. Get a new one.
|
||||||
|
dakiny_logger.info("Refreshing git connection.")
|
||||||
self.repo_setup()
|
self.repo_setup()
|
||||||
guild: nextcord.Guild = self.bot.get_guild(settings.params.guild_id)
|
guild: nextcord.Guild = self.bot.get_guild(settings.params.guild_id)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user