Format log messages with program name
Some checks are pending
portzap / shellcheck (push) Waiting to run

This commit is contained in:
0x1eef 2024-09-14 02:33:05 -03:00
parent d449bcc1b4
commit f7374a63b8
2 changed files with 6 additions and 2 deletions

View file

@ -2,10 +2,10 @@
printok() printok()
{ {
printf "ok: %s\n" "${1}" > /dev/stdout printf "portzap: %s\n" "${1}" > /dev/stdout
} }
printerr() printerr()
{ {
printf "error: %s\n" "${1}" > /dev/stderr printf "portzap: %s\n" "${1}" > /dev/stderr
} }

View file

@ -2,6 +2,10 @@
* vNEXT * vNEXT
**** Format log messages with program name
This change formats log messages written to standard output
and standard error with the pattern ~portzap: <message>~
**** Fix typo in ~commands/portzap-setup~ **** Fix typo in ~commands/portzap-setup~
This change fixes a typo that would throw an error when This change fixes a typo that would throw an error when
running the ~portzap setup~ command running the ~portzap setup~ command