Skip to content
Browse files

The same log entry is written twice when HA_LOGFILE=HA_DEBUGLOG

  • Loading branch information...
1 parent 3f2b853 commit 06f8fd6e89abf53b5a4f0ee62c0ce771c194843a @grueni grueni committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 heartbeat/ocf-shellfuncs.in
View
4 heartbeat/ocf-shellfuncs.in
@@ -235,7 +235,9 @@ ha_log() {
[ -n "$HA_DEBUGLOG" ]
then
: appending to $HA_DEBUGLOG
- echo "$HA_LOGTAG: "`hadate`"${*}" >> $HA_DEBUGLOG
+ if [ "$HA_LOGFILE"x != "$HA_DEBUGLOG"x ]; then
+ echo "$HA_LOGTAG: "`hadate`"${*}" >> $HA_DEBUGLOG
+ fi
fi
}

0 comments on commit 06f8fd6

Please sign in to comment.
Something went wrong with that request. Please try again.