Revert "Revert "oran-shell-release: release image for F""
[pti/rtp.git] / meta-starlingx / meta-stx-cloud / recipes-support / cluster-resource-agents / resource-agents / stx / ocf-shellfuncs_change_logtag.patch
1 From 64f5534579e8f14f723c48f317cd56badca225ee Mon Sep 17 00:00:00 2001
2 From: Don Penney <don.penney@windriver.com>
3 Date: Thu, 25 Aug 2016 13:07:16 -0400
4 Subject: [PATCH 1/1] Set OCF_ prefix in logs for syslog destination sorting
5
6 ---
7  heartbeat/ocf-shellfuncs.in | 4 ++--
8  1 file changed, 2 insertions(+), 2 deletions(-)
9
10 diff --git a/heartbeat/ocf-shellfuncs.in b/heartbeat/ocf-shellfuncs.in
11 index 3565e20..688c150 100644
12 --- a/heartbeat/ocf-shellfuncs.in
13 +++ b/heartbeat/ocf-shellfuncs.in
14 @@ -176,9 +176,9 @@ hadate() {
15  set_logtag() {
16         if [ -z "$HA_LOGTAG" ]; then
17                 if [ -n "$OCF_RESOURCE_INSTANCE" ]; then
18 -                       HA_LOGTAG="$__SCRIPT_NAME($OCF_RESOURCE_INSTANCE)[$$]"
19 +                       HA_LOGTAG="OCF_$__SCRIPT_NAME($OCF_RESOURCE_INSTANCE)[$$]"
20                 else
21 -                       HA_LOGTAG="$__SCRIPT_NAME[$$]"
22 +                       HA_LOGTAG="OCF_$__SCRIPT_NAME[$$]"
23                 fi
24         fi
25  }
26 -- 
27 2.7.4
28