Skip to content

Commit 13c6243

Browse files
committed
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.
1 parent 4a02dfd commit 13c6243

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

lgsm/config-default/config-lgsm/pvrserver/_default.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters
1212
ip="0.0.0.0"
1313
port="7777"
14-
1514
# Maps: bridge, datacenter, sand
1615
defaultmap="datacenter"
1716
# Get an API key from https://pavlov-ms.vankrupt.com/servers/v1/key

lgsm/modules/info_messages.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ fn_info_logs() {
762762
else
763763
echo -e "${gamelogdir}"
764764
# dos2unix sed 's/\r//'
765-
tail "${gamelogdir}"/* 2> /dev/null | grep -v "==>" | sed '/^$/d' | sed 's/\r//' | tail -25
765+
tail "${gamelogdir}"/* 2> /dev/null | grep -av "==>" | sed '/^$/d' | sed 's/\r//' | tail -25
766766
fi
767767
echo -e ""
768768
fi

0 commit comments

Comments
 (0)