From 4aa442a8024df8777554321821e7fc36ed22784e Mon Sep 17 00:00:00 2001 From: Michal Tuszowski Date: Fri, 31 Jan 2025 20:00:05 +0100 Subject: [PATCH] Maybe fix --- other_functions.py | 4 ++-- thin_client.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/other_functions.py b/other_functions.py index 4827f85..9535d65 100644 --- a/other_functions.py +++ b/other_functions.py @@ -96,7 +96,7 @@ async def discord_friendly_reply(ctx, message_content, file=None): else: logger.info("Answer reply - message above 999") while len(message_content) > 0: - logger.debug("Mesaage content: %s", message_content[:999]) + logger.info("Mesaage content: %s", message_content[:999]) await ctx.reply(message_content[:999]) message_content = message_content[999:] if file: @@ -111,7 +111,7 @@ async def discord_friendly_send(ctx, message_content, file=None): else: logger.info("Answer send - message above 999") while len(message_content) > 0: - logger.debug("Mesaage content: %s", message_content[:999]) + logger.info("Mesaage content: %s", message_content[:999]) await ctx.send(message_content[:999]) message_content = message_content[999:] if file: diff --git a/thin_client.py b/thin_client.py index 0ec2763..cbb1c33 100644 --- a/thin_client.py +++ b/thin_client.py @@ -19,7 +19,7 @@ from discord.ext import commands from communication_subroutine import comm_subroutine from constants import ENCODING, LOGFILE, TOKEN logger = logging.getLogger("discord") -logger.setLevel(logging.DEBUG) +logger.setLevel(logging.INFO) handler = handlers.RotatingFileHandler( filename=LOGFILE, encoding=ENCODING, @@ -54,7 +54,7 @@ async def on_ready(): """Metoda wywoływana przy połączeniu do serwera.""" logger = logging.getLogger("discord") logger.debug("SAMPLE DEBUG LOG") - logger.debug("%s has connected to Discord!", client.user) + logger.info("%s has connected to Discord!", client.user) # TODO: load vs reload logger.info("Reactor: online")