Browse Source

correct debug.log output

Vadim Surkov 5 years ago
parent
commit
7f3c526a8b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      entrypoint.sh

+ 1 - 1
entrypoint.sh

@@ -8,7 +8,7 @@ tail -f /root/.wine/drive_c/services/analis/log/fatal.log | while read fread; do
 if [ ! -z ${DEBUG} ] && [ ${DEBUG} == "true" ]
 then
     touch /root/.wine/drive_c/services/analis/debug.log
-    ln -sf /dev/stdout /root/.wine/drive_c/services/analis/debug.log
+    tail -f /root/.wine/drive_c/services/analis/debug.log 2> /dev/null | while read fread; do echo "[debug.log]: ${fread}"; :> /root/.wine/drive_c/services/analis/debug.log; done &
     exec "/usr/bin/xvfb-run" "-a" "wine" "/root/.wine/drive_c/services/analis/AnalisServer.exe" "/debug" "debugfile=/root/.wine/drive_c/services/analis/debug.log" "$@"
 else
     exec "/usr/bin/xvfb-run" "-a" "wine" "/root/.wine/drive_c/services/analis/AnalisServer.exe" "$@"