From fe808a0b8bc5acdd715ae3903c83a9d2d1e43aa2 Mon Sep 17 00:00:00 2001 From: Galen Guyer Date: Tue, 16 Aug 2022 13:01:13 -0400 Subject: add custom module names --- lib/log.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/log.sh b/lib/log.sh index f204d7e..8a0c611 100644 --- a/lib/log.sh +++ b/lib/log.sh @@ -33,6 +33,7 @@ function log() { [[ "$DOT_LOG_LEVEL" -gt "$level" ]] && return [[ -n "$_modulename" ]] && module="[$_modulename]: " || module="" + [[ -n "$DOT_MODULE_NAME" ]] && module="[$DOT_MODULE_NAME]: " echo "$log_level_string $module$@" } -- cgit v1.2.3