From ca0b4ecf005e1c1f4066460a45393ebffef1ef1c Mon Sep 17 00:00:00 2001 From: Samlon Date: Mon, 11 Aug 2025 17:39:21 +0200 Subject: more logging --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.py') diff --git a/main.py b/main.py index 592ff9c..f4b093e 100644 --- a/main.py +++ b/main.py @@ -11,7 +11,7 @@ from dotenv import load_dotenv # Configure logging logging.basicConfig( level=logging.INFO, - format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', + format='%(filename)s - %(name)s - %(levelname)s - %(message)s', handlers=[ logging.StreamHandler(sys.stdout) ] @@ -23,7 +23,7 @@ bot = commands.Bot(intents=discord.Intents.all()) @bot.event async def on_ready(): - logger.info("ŁUKASZ SPERMA AKTYWACJA" + datetime.datetime.now().strftime("(%Y-%m-%d %H:%M:%S)")) + logger.info("ŁUKASZ SPERMA AKTYWACJA") # send the message to channel ID channel = bot.get_channel(1081667823799111804) await channel.send("ŁUKASZ SPERMA AKTYWACJA") -- cgit v1.2.3