From f08583878190463070ef689a8ba805df2d61d406 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Wed, 22 Jul 2026 23:42:52 -0600 Subject: [PATCH] feat(logger): Add test with operation, error code --- logger.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logger.sh b/logger.sh index 184851b..466db8d 100644 --- a/logger.sh +++ b/logger.sh @@ -131,7 +131,7 @@ if [ "$1" = "text" ]; then writePlainTextLog "Plain-text message forced to info level" "whoops" "ok" # level translated to default writePlainTextLog "Warning! This is plain-text." "warning" "flagged" # warning level with 'flagged' status writePlainTextLog "Error sample! This is plain-text." "err" "error" # error level message - writePlainTextLog "Unable to continue, critical failure. (This is plain-text)" "fatal" "error" # critical level error + writePlainTextLog "Unable to continue, critical failure. (This is plain-text)" "fatal" "exit" "startup" "2" # critical level error with operation and error code elif [ "$1" = "json" ]; then writeJsonLog # this will generate a generic error message writeJsonLog "This is a test message" # generate this message at the default level with the default code