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
2019-07-17 17:59:38 -04:00
parent 5a52286309
commit 402c6db826
2 changed files with 9 additions and 2 deletions

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

View File

@@ -152,7 +152,7 @@ dokku_log_fail() {
dokku_log_event() {
declare desc="log dokku events"
logger -t dokku -i -- "$@"
logger -t dokku-event -i -- "$@"
}
dokku_log_plugn_trigger_call() {