mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2025-01-08 12:07:37 +08:00
refactor: improve log file display in info_messages.sh
The code change modifies the tail command in the fn_info_logs function to exclude lines containing "==>". This improves the display of log files by filtering out unnecessary information.
This commit is contained in:
parent
4a02dfd382
commit
13c62431d0
@ -11,7 +11,6 @@
|
||||
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters
|
||||
ip="0.0.0.0"
|
||||
port="7777"
|
||||
|
||||
# Maps: bridge, datacenter, sand
|
||||
defaultmap="datacenter"
|
||||
# Get an API key from https://pavlov-ms.vankrupt.com/servers/v1/key
|
||||
|
@ -762,7 +762,7 @@ fn_info_logs() {
|
||||
else
|
||||
echo -e "${gamelogdir}"
|
||||
# dos2unix sed 's/\r//'
|
||||
tail "${gamelogdir}"/* 2> /dev/null | grep -v "==>" | sed '/^$/d' | sed 's/\r//' | tail -25
|
||||
tail "${gamelogdir}"/* 2> /dev/null | grep -av "==>" | sed '/^$/d' | sed 's/\r//' | tail -25
|
||||
fi
|
||||
echo -e ""
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user