mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2025-01-08 12:07:37 +08:00
feat: dev-debug.log moved to /data/log if running in docker
This commit is contained in:
parent
35a535bfa1
commit
cfdfcc3d7f
@ -13,6 +13,8 @@ fn_exit_dev_debug() {
|
||||
echo -e "${moduleselfname} exiting with code: ${exitcode}"
|
||||
if [ -f "${rootdir}/dev-debug.log" ]; then
|
||||
grep -a "modulefile=" "${rootdir}/dev-debug.log" | sed 's/modulefile=//g' > "${rootdir}/dev-debug-module-order.log"
|
||||
elif [ -f "${lgsmlogdir}/dev-debug.log" ]; then
|
||||
grep -a "modulefile=" "${lgsmlogdir}/dev-debug.log" | sed 's/modulefile=//g' > "${rootdir}/dev-debug-module-order.log"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
@ -15,7 +15,11 @@
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5> dev-debug.log
|
||||
if [ -f /.dockerenv ]; then
|
||||
exec 5> /data/log/dev-debug.log
|
||||
else
|
||||
exec 5> dev-debug.log
|
||||
fi
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user