You really need 100 lines with the egrep already filtering the log? - I've tested with 20 with sucess

This commit is contained in:
CT2JAY 2017-02-20 11:36:23 +00:00
parent 9125afb8c6
commit 78748654db

View file

@ -196,7 +196,7 @@ function getMMDVMLog() {
function getShortMMDVMLog() {
// Open Logfile and copy loglines into LogLines-Array()
$logPath = MMDVMLOGPATH."/".MMDVMLOGPREFIX."-".date("Y-m-d").".log";
$logLines = explode("\n", `egrep -h "from|end|watchdog|lost|Alias|0000" $logPath | tail -100`);
$logLines = explode("\n", `egrep -h "from|end|watchdog|lost|Alias|0000" $logPath | tail -20`);
return $logLines;
}