Add timestamp and instance name to arkserver.log log entries

This commit is contained in:
Ben Peddell 2016-12-13 15:06:20 +11:00 committed by GitHub
parent db592eeb40
commit 37db49f6f5

View File

@ -1064,7 +1064,7 @@ doStart() {
local pid=$!
if [[ -n "$arkPriorityBoost" || -n "$arkCpuAffinity" ]]; then
doRun --wait </dev/null >>"$logdir/$arkserverLog" 2>&1 & # output of this command is logged
doRun --wait </dev/null > >(while read -r l; do printf "%s: [%s] %s\n" "$(timestamp)" "${instance}" "${l}" >>"$logdir/$arkserverLog"; done) 2>&1 & # output of this command is logged
local pid="$!"
# Wait for monitor process to suspend itself