Minor changes related to logging
[snf-network] / snf-network-log
index 5fc2853..50c0cda 100755 (executable)
@@ -6,7 +6,7 @@
 
 source /etc/default/snf-network
 
-caller=$1
+caller=$(basename $1)
 
 shift
 
@@ -15,7 +15,7 @@ hooks_info="$GANETI_HOOKS_PATH $GANETI_HOOKS_PHASE"
 msg="$@"
 
 cat >>$LOGFILE <<EOF
-$(date) $caller $hooks_info $msg
+$(date) $hooks_info $caller $msg
 EOF
 
 exit 0