Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
The same log entry is written twice when HA_LOGFILE=HA_DEBUGLOG
  • Loading branch information
grueni committed Oct 6, 2012
1 parent 3f2b853 commit 06f8fd6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion heartbeat/ocf-shellfuncs.in
Expand Up @@ -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
}

Expand Down

0 comments on commit 06f8fd6

Please sign in to comment.