From f7374a63b856ae7f7f5a775fff9084678b1df25b Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Sat, 14 Sep 2024 02:33:05 -0300 Subject: [PATCH] Format log messages with program name --- libexec/portzap/functions/print.sh | 4 ++-- share/portzap/CHANGELOG | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/libexec/portzap/functions/print.sh b/libexec/portzap/functions/print.sh index b5d395f..fb27aff 100755 --- a/libexec/portzap/functions/print.sh +++ b/libexec/portzap/functions/print.sh @@ -2,10 +2,10 @@ printok() { - printf "ok: %s\n" "${1}" > /dev/stdout + printf "portzap: %s\n" "${1}" > /dev/stdout } printerr() { - printf "error: %s\n" "${1}" > /dev/stderr + printf "portzap: %s\n" "${1}" > /dev/stderr } diff --git a/share/portzap/CHANGELOG b/share/portzap/CHANGELOG index 6782e6d..def32c0 100644 --- a/share/portzap/CHANGELOG +++ b/share/portzap/CHANGELOG @@ -2,6 +2,10 @@ * vNEXT +**** Format log messages with program name +This change formats log messages written to standard output +and standard error with the pattern ~portzap: ~ + **** Fix typo in ~commands/portzap-setup~ This change fixes a typo that would throw an error when running the ~portzap setup~ command