Reduce logging level
This commit is contained in:
parent
00fdcf32c2
commit
4bdc14e161
@ -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()
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user