Skip to content

Commit 1b25f50

Browse files
committed
log the error message in abnormal_end() function even when we are in
'stop' operation so it is clear from logs on how did we end up here
1 parent 21de564 commit 1b25f50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

heartbeat/SAPInstance

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,13 +294,13 @@ abnormal_end() {
294294
exit $?
295295
}
296296

297+
ocf_log err $err_msg
297298
if [ "$ACTION" = "stop" ]
298299
then
299300
cleanup_instance
300301
exit $OCF_SUCCESS
301302
fi
302303

303-
ocf_log err $err_msg
304304
exit $OCF_ERR_CONFIGURED
305305
}
306306

0 commit comments

Comments
 (0)