From 4bd29d92a367164dcb54115e1914fa580631d540 Mon Sep 17 00:00:00 2001 From: Robert Elliot Date: Fri, 8 Jan 2021 11:05:38 +0000 Subject: [PATCH] Improve logging --- docker-lifecycle-listener.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-lifecycle-listener.sh b/docker-lifecycle-listener.sh index e78edaa..2746eb2 100755 --- a/docker-lifecycle-listener.sh +++ b/docker-lifecycle-listener.sh @@ -95,7 +95,7 @@ run_on() { local command="$1" local script_dir="$2" - log "Received $command" + log "Handling $command" local dir; dir="$script_dir/on_$command/" if [ -d "$dir" ]; then @@ -105,6 +105,8 @@ run_on() { else log "$dir does not exist" fi + + log "Finished handling $command" } unknown() {