[Open-FCoE] [RFC PATCH 13/14] fcoe-utils: Don't log to stderr when use_syslog is set

Robert Love robert.w.love at intel.com
Wed Jul 8 22:18:36 UTC 2009


Currently when use_syslog is set we log to both stderr as
well as to syslog. Let's just log to syslog and not std err.

Signed-off-by: Robert Love <robert.w.love at intel.com>
---

 etc/initd/initd.fedora |    2 +-
 etc/initd/initd.suse   |    2 +-
 fcoeplumb.in           |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/etc/initd/initd.fedora b/etc/initd/initd.fedora
index 4151633..629fc76 100755
--- a/etc/initd/initd.fedora
+++ b/etc/initd/initd.fedora
@@ -86,7 +86,7 @@ if [ $? -ne 0 ]; then
 fi
 
 if [ "$USE_SYSLOG" = "yes" ] || [ "$USE_SYSLOG" = "YES" ]; then
-    LOGGER="logger -t fcoe -s"
+    LOGGER="logger -t fcoe"
     FCOEMON_OPTS+=" --syslog"
 fi
 
diff --git a/etc/initd/initd.suse b/etc/initd/initd.suse
index 6a65299..6840d44 100755
--- a/etc/initd/initd.suse
+++ b/etc/initd/initd.suse
@@ -112,7 +112,7 @@ if [ $? -ne 0 ]; then
 fi
 
 if [ "$USE_SYSLOG" = "yes" ] || [ "$USE_SYSLOG" = "YES" ]; then
-    LOGGER="logger -t fcoe -s"
+    LOGGER="logger -t fcoe"
     FCOEMON_OPTS+=" --syslog"
 fi
 
diff --git a/fcoeplumb.in b/fcoeplumb.in
index 1d09c1d..63ebe89 100755
--- a/fcoeplumb.in
+++ b/fcoeplumb.in
@@ -226,7 +226,7 @@ config_logging()
 {
     if [ $DEBUG_LOGGING ] ; then
 	if [ $USE_SYSLOG ] ; then
-	    LOGGER="logger -s -t fcoeplumb"
+	    LOGGER="logger -t fcoeplumb"
 	else
 	    LOGGER="echo"
 	fi




More information about the devel mailing list