summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xclient/engine/System.lib4
1 files changed, 1 insertions, 3 deletions
diff --git a/client/engine/System.lib b/client/engine/System.lib
index 43b2e953..0275d0a3 100755
--- a/client/engine/System.lib
+++ b/client/engine/System.lib
@@ -37,9 +37,7 @@ esac
DATETIME=$(date +"%F %T")
if [ -n "$LOGLEVEL" ]; then
- logger -s -t "OpenGnSys $LOGLEVEL" -f $OGLOGFILE "$DATETIME $*"
- logger -t "OpenGnSys $LOGLEVEL" -f $OGLOGCOMMAND "$DATETIME $*"
- logger -t "OpenGnSys $LOGLEVEL" -f $OGLOGSESSION "$DATETIME $*"
+ logger -s -t "OpenGnSys $LOGLEVEL" "$DATETIME $*" 2>&1 | tee -a $OGLOGFILE $OGLOGCOMMAND $OGLOGSESSION
else
echo "$*"
fi