chore: move the event logging to it's own tag

Without this, rsyslog will shunt any logging output from the dokku user to the event log, garbling output for future investigation.
This commit is contained in:
Jose Diaz-Gonzalez committed 2019-07-17 20:48:57 -04:00
1 parent 5a52286309
commit 402c6db826
2 files changed
+9 -2

No files matched your search

+8 -1
View File
@@ -38,7 +38,14 @@ fi
if [[ -d "$DOKKU_RSYSLOG_FILTER_DIR" && ! -f "$DOKKU_RSYSLOG_FILTER" ]]; then
cat >"$DOKKU_RSYSLOG_FILTER" <<EOF
:syslogtag, contains, "dokku" $DOKKU_EVENTS_LOGFILE
:syslogtag, contains, "dokku-event" $DOKKU_EVENTS_LOGFILE
EOF
flag_rsyslog_needs_restart=y
fi
if [[ -f "$DOKKU_RSYSLOG_FILTER" ]] && ! grep -q "dokku-event" "$DOKKU_RSYSLOG_FILTER"; then
cat >"$DOKKU_RSYSLOG_FILTER" <<EOF
:syslogtag, contains, "dokku-event" $DOKKU_EVENTS_LOGFILE
EOF
flag_rsyslog_needs_restart=y
fi