summaryrefslogtreecommitdiff
path: root/lib/log.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/log.sh')
-rw-r--r--lib/log.sh1
1 files changed, 1 insertions, 0 deletions
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$@"
}