Reduce logging level

This commit is contained in:
Ske 2018-07-16 01:04:40 +02:00
parent 00fdcf32c2
commit 4bdc14e161
2 changed files with 3 additions and 2 deletions

View File

@ -4,12 +4,12 @@ import os
import discord import discord
logging.basicConfig(level=logging.DEBUG) logging.basicConfig(level=logging.INFO)
logging.getLogger("discord").setLevel(logging.INFO) logging.getLogger("discord").setLevel(logging.INFO)
logging.getLogger("websockets").setLevel(logging.INFO) logging.getLogger("websockets").setLevel(logging.INFO)
logger = logging.getLogger("pluralkit.bot") logger = logging.getLogger("pluralkit.bot")
logger.setLevel(logging.DEBUG) logger.setLevel(logging.INFO)
client = discord.Client() client = discord.Client()

View File

@ -112,6 +112,7 @@ async def send_hook_message(member, hook_id, hook_token, text=None, image_url=No
async def proxy_message(conn, member, trigger_message, inner): async def proxy_message(conn, member, trigger_message, inner):
logger.debug("Proxying message '{}' for member {}".format(inner, member["hid"])) logger.debug("Proxying message '{}' for member {}".format(inner, member["hid"]))
logger.info("[{}#{}] {}".format(member["system_hid"], member["hid"], inner))
# Get the webhook details # Get the webhook details
hook_id, hook_token = await get_webhook(conn, trigger_message.channel) hook_id, hook_token = await get_webhook(conn, trigger_message.channel)