Change in vdsm[master]: infra: adding debug log to vdsm daemon init script
ybronhei at redhat.com
ybronhei at redhat.com
Mon Aug 20 12:16:53 UTC 2012
Yaniv Bronhaim has uploaded a new change for review.
Change subject: infra: adding debug log to vdsm daemon init script
......................................................................
infra: adding debug log to vdsm daemon init script
Change-Id: I39ef7e19ede6eaed5c3f27b8c46f6f2b14dd08bd
Signed-off-by: Yaniv Bronhaim <ybronhei at redhat.com>
---
M vdsm/vdsmd.init.in
1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/40/7340/1
diff --git a/vdsm/vdsmd.init.in b/vdsm/vdsmd.init.in
index d34b48d..e664952 100755
--- a/vdsm/vdsmd.init.in
+++ b/vdsm/vdsmd.init.in
@@ -24,6 +24,7 @@
. @LIBEXECDIR@/ovirt_functions.sh
VDSM_BIN=@VDSMDIR@/vdsm
+DEBUG_LOG=@VDSMDIR@/vdsmd.log
CONF_FILE=@CONFDIR@/vdsm.conf
GETCONFITEM=@VDSMDIR@/get-conf-item
prog=vdsm
@@ -47,6 +48,7 @@
. /etc/init.d/functions
+debug_log() { [[ -n "$DEBUG" ]] && (echo "$*" >> $DEBUG_LOG) }
log_failure_msg() { echo -n "$@"; failure "$@"; echo; }
log_success_msg() { echo -n "$@"; success "$@"; echo; }
--
To view, visit http://gerrit.ovirt.org/7340
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I39ef7e19ede6eaed5c3f27b8c46f6f2b14dd08bd
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Yaniv Bronhaim <ybronhei at redhat.com>
More information about the vdsm-patches
mailing list