Browse Source
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.
pull/4319/head
Daniel Gibbs
2 years ago
No known key found for this signature in database
GPG Key ID: 2076B128385E8C55
2 changed files with
1 additions and
2 deletions
lgsm/config-default/config-lgsm/pvrserver/_default.cfg
lgsm/modules/info_messages.sh
@ -11,7 +11,6 @@
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters
ip = "0.0.0.0"
ip = "0.0.0.0"
port = "7777"
port = "7777"
# Maps: bridge, datacenter, sand
# Maps: bridge, datacenter, sand
defaultmap = "datacenter"
defaultmap = "datacenter"
# Get an API key from https://pavlov-ms.vankrupt.com/servers/v1/key
# Get an API key from https://pavlov-ms.vankrupt.com/servers/v1/key
@ -762,7 +762,7 @@ fn_info_logs() {
else
else
echo -e " ${ gamelogdir } "
echo -e " ${ gamelogdir } "
# dos2unix sed 's/\r//'
# dos2unix sed 's/\r//'
tail " ${ gamelogdir } " /* 2> /dev/null | grep -v "==>" | sed '/^$/d' | sed 's/\r//' | tail -25
tail " ${ gamelogdir } " /* 2> /dev/null | grep -a v "==>" | sed '/^$/d' | sed 's/\r//' | tail -25
fi
fi
echo -e ""
echo -e ""
fi
fi