From b96e5001647a5fe24afa5407940d765b6e2209fb Mon Sep 17 00:00:00 2001 From: Blake Wyatt <894305+xNul@users.noreply.github.com> Date: Sat, 3 Jun 2023 19:44:29 -0400 Subject: [PATCH] Fix logging --- bot.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 2ef7382..3bb9b2b 100644 --- a/bot.py +++ b/bot.py @@ -1,12 +1,12 @@ from datetime import datetime, timedelta from pathlib import Path -from modules.logging_colors import logger from threading import Lock import asyncio import random import json import re import copy +import logging import math import glob import os @@ -16,6 +16,9 @@ from discord import app_commands import torch +logger = logging.getLogger("discord") +logger.propagate = False + # Intercept custom bot arguments import sys bot_arg_list = ["--limit-history", "--token"]