From 37db49f6f559c53f7fb25edba2e83b5e0b883717 Mon Sep 17 00:00:00 2001 From: Ben Peddell Date: Tue, 13 Dec 2016 15:06:20 +1100 Subject: [PATCH] Add timestamp and instance name to arkserver.log log entries --- tools/arkmanager | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/arkmanager b/tools/arkmanager index 35cb6b4..0e92dcd 100755 --- a/tools/arkmanager +++ b/tools/arkmanager @@ -1064,7 +1064,7 @@ doStart() { local pid=$! if [[ -n "$arkPriorityBoost" || -n "$arkCpuAffinity" ]]; then - doRun --wait >"$logdir/$arkserverLog" 2>&1 & # output of this command is logged + doRun --wait >(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