|
|
15862b |
From 75816393878bf063a8c3404b5c747868024e1097 Mon Sep 17 00:00:00 2001
|
|
|
15862b |
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
|
|
|
15862b |
Date: Wed, 1 Mar 2017 15:34:26 +0100
|
|
|
15862b |
Subject: [PATCH] ocf_log: use same log format as pacemaker
|
|
|
15862b |
|
|
|
15862b |
---
|
|
|
15862b |
heartbeat/ocf-directories.in | 2 +-
|
|
|
15862b |
heartbeat/ocf-shellfuncs.in | 2 +-
|
|
|
15862b |
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
15862b |
|
|
|
15862b |
diff --git a/heartbeat/ocf-directories.in b/heartbeat/ocf-directories.in
|
|
|
15862b |
index 8d70776..d8df035 100644
|
|
|
15862b |
--- a/heartbeat/ocf-directories.in
|
|
|
15862b |
+++ b/heartbeat/ocf-directories.in
|
|
|
15862b |
@@ -13,7 +13,7 @@ exec_prefix=@exec_prefix@
|
|
|
15862b |
: ${HA_FIFO:=@localstatedir@/lib/heartbeat/fifo}
|
|
|
15862b |
: ${HA_BIN:=@libexecdir@/heartbeat}
|
|
|
15862b |
: ${HA_SBIN_DIR:=@sbindir@}
|
|
|
15862b |
-: ${HA_DATEFMT:="%Y/%m/%d_%T "}
|
|
|
15862b |
+: ${HA_DATEFMT:="%b %d %T "}
|
|
|
15862b |
: ${HA_DEBUGLOG:=/dev/null}
|
|
|
15862b |
: ${HA_RESOURCEDIR:=$HA_DIR/resource.d}
|
|
|
15862b |
: ${HA_DOCDIR:=@datadir@/doc/heartbeat}
|
|
|
15862b |
diff --git a/heartbeat/ocf-shellfuncs.in b/heartbeat/ocf-shellfuncs.in
|
|
|
15862b |
index 2a3b875..87b2adf 100644
|
|
|
15862b |
--- a/heartbeat/ocf-shellfuncs.in
|
|
|
15862b |
+++ b/heartbeat/ocf-shellfuncs.in
|
|
|
15862b |
@@ -231,7 +231,7 @@ __ha_log() {
|
|
|
15862b |
[ -n "$HA_LOGFILE" ]
|
|
|
15862b |
then
|
|
|
15862b |
: appending to $HA_LOGFILE
|
|
|
15862b |
- echo "$HA_LOGTAG: "`hadate`"${*}" >> $HA_LOGFILE
|
|
|
15862b |
+ echo `hadate`" $HA_LOGTAG: ${*}" >> $HA_LOGFILE
|
|
|
15862b |
fi
|
|
|
15862b |
if
|
|
|
15862b |
[ -z "$HA_LOGFACILITY" -a -z "$HA_LOGFILE" ] && ! [ "$ignore_stderr" = "true" ]
|
|
|
15862b |
--
|
|
|
15862b |
2.9.3
|
|
|
15862b |
|