Skip to content

Commit e6239cd

Browse files
committed
Added Filename and Line Number to Log Format
Add filename and line number to log record format for GitHub workflow commands
1 parent 979423d commit e6239cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

normalize_repos/log.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ def update_format(self, record):
5454
bold = "1m"
5555
reset = "0m"
5656
self._style._fmt = (
57-
"::%(levelname)-8s:: %(asctime)s │ "
57+
"::%(levelname)-8s file=%(filename)-20s,line=%(lineno)-4d::"
58+
"%(asctime)s │ "
5859
f"%(indent)s{prefix}{bold}%(function)s{prefix}{reset}: "
5960
"%(message)s"
6061
)

0 commit comments

Comments
 (0)