forked from Mirror/pmbootstrap
logging: print text between *** in green (MR 2263)
Highlight messages like the following from pmbootstrap install: [19:45:59] *** (1/4) PREPARE NATIVE CHROOT *** [ci:skip-build]: already built successfully in CI
This commit is contained in:
parent
385fc2cfc1
commit
6ba138b6b2
1 changed files with 10 additions and 0 deletions
|
@ -47,6 +47,16 @@ class log_handler(logging.StreamHandler):
|
||||||
f"{styles['GREEN']}DONE!{styles['END']}",
|
f"{styles['GREEN']}DONE!{styles['END']}",
|
||||||
1,
|
1,
|
||||||
)
|
)
|
||||||
|
.replace(
|
||||||
|
"*** ",
|
||||||
|
f"{styles['GREEN']}*** ",
|
||||||
|
1,
|
||||||
|
)
|
||||||
|
.replace(
|
||||||
|
" ***",
|
||||||
|
f" ***{styles['END']}",
|
||||||
|
1,
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
stream.write(msg_col)
|
stream.write(msg_col)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue