def log_cmd_stacktrace(err: commands.CommandInvokeError):
""" Logs the stacktrace of a failed command execution.
:param err:
"""
if not _logger.ready:
init_logger()
_logger.logger.exception(" ", exc_info=err.original)
评论列表
文章目录