Skip to content

Commit

Permalink
added logging for when creating a channel
Browse files Browse the repository at this point in the history
  • Loading branch information
camalot committed Jun 27, 2024
1 parent 09135ec commit a74231d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion bot/cogs/channel_creator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import inspect
import json
import os
import traceback

Expand Down Expand Up @@ -199,7 +200,7 @@ async def on_voice_state_update(self, member, before, after):
guildId=guild_id, userId=channel_owner_id or member.id
)
self.log.debug(
guild_id, f"{self._module}.{self._class}.{_method}", f"User Settings: {userSettings}"
guild_id, f"{self._module}.{self._class}.{_method}", f"User Settings: {json.dumps(userSettings.__dict__)}"
)
guildSettings = self.settings.db.get_guild_category_settings(
guildId=guild_id, categoryId=category_id
Expand Down
6 changes: 3 additions & 3 deletions bot/cogs/lib/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ def load_language_manifest(self):

def get_string(self, guildId: int, key: str, *args, **kwargs) -> str:
_method = inspect.stack()[1][3]
print(f"get_string: {guildId}, {key}, {args}, {kwargs}")
print(f"self.strings: {self.strings}")
print(f"self.language: {self.language}")
# print(f"get_string: {guildId}, {key}, {args}, {kwargs}")
# print(f"self.strings: {self.strings}")
# print(f"self.language: {self.language}")
if not key:
return ''
if str(guildId) in self.strings:
Expand Down

0 comments on commit a74231d

Please sign in to comment.