mirror of
https://gitlab.com/chicken-riders/RcGcDb.git
synced 2025-02-23 00:54:09 +00:00
Small fix to new error handler, added more debug in --debug (now with extra spam)
This commit is contained in:
parent
8ca9918464
commit
eb6e03a365
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -4,4 +4,4 @@ settings.json
|
||||||
*.db
|
*.db
|
||||||
*.code-workspace
|
*.code-workspace
|
||||||
*.bat
|
*.bat
|
||||||
/locale/
|
source-file-list.txt
|
|
@ -159,6 +159,7 @@ def global_exception_handler(loop, context):
|
||||||
else:
|
else:
|
||||||
shutdown(loop)
|
shutdown(loop)
|
||||||
|
|
||||||
|
|
||||||
async def main_loop():
|
async def main_loop():
|
||||||
loop = asyncio.get_event_loop()
|
loop = asyncio.get_event_loop()
|
||||||
try:
|
try:
|
||||||
|
@ -179,4 +180,4 @@ async def main_loop():
|
||||||
shutdown(loop)
|
shutdown(loop)
|
||||||
|
|
||||||
|
|
||||||
asyncio.run(main_loop())
|
asyncio.run(main_loop(), debug=command_line_args.debug)
|
||||||
|
|
|
@ -111,7 +111,7 @@ async def formatter_exception_logger(wiki_url, change, exception):
|
||||||
message = DiscordMessage("embed", "bot/exception", [None], wiki=None)
|
message = DiscordMessage("embed", "bot/exception", [None], wiki=None)
|
||||||
message["description"] = exception
|
message["description"] = exception
|
||||||
message["title"] = "RC Exception Report"
|
message["title"] = "RC Exception Report"
|
||||||
change = change[0:1000]
|
change = str(change)[0:1000]
|
||||||
message.add_field("Wiki URL", wiki_url)
|
message.add_field("Wiki URL", wiki_url)
|
||||||
message.add_field("Change", change)
|
message.add_field("Change", change)
|
||||||
message.finish_embed()
|
message.finish_embed()
|
||||||
|
|
Loading…
Reference in a new issue