Skip to content

Commit

Permalink
✨ 日志消息添加代码行号 (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
A-kirami committed Sep 10, 2023
1 parent e2cb682 commit 20c8baa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kirami/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def file_handler(levels: LevelName | tuple[LevelName, ...]) -> list[dict[str, An
"diagnose": False,
"backtrace": True,
"filter": LogFilter(),
"format": lambda _: "[light_slate_blue bold][link={file.path}]{name}[/][/] [dim]|[/] {message}",
"format": lambda _: "[light_slate_blue bold][link={file.path}:{line}]{name}[/][/] [dim]|[/] {message}",
},
*file_handler(bot_config.log_file),
]
Expand Down

0 comments on commit 20c8baa

Please sign in to comment.