Skip to content

Commit 3d263b2

Browse files
committed
feat: change logging level WARNING and allow set log level.
1 parent d3af62c commit 3d263b2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

interactions/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
class Data:
2121
"""A class representing constants for the library."""
2222

23-
LOGGER: ClassVar[int] = logging.DEBUG
23+
LOGGER: ClassVar[int] = logging.WARNING
2424

2525

2626
class CustomFormatter(logging.Formatter):

interactions/client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ def __init__(
9090
else:
9191
self.automate_sync = True
9292

93-
Data.LOGGER = log_level
93+
log_names: list = ["client", "context", "dispatch", "gateway", "http"]
94+
for logger in log_names:
95+
getLogger(logger).setLevel(log_level)
9496

9597
if not self.me:
9698
data = self.loop.run_until_complete(self.http.get_current_bot_information())

0 commit comments

Comments
 (0)