Skip to content
Snippets Groups Projects
Commit d0f587f5 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Der letzte Log wird direkt aus der Redis Datenbank geholt

parent ee9311fd
No related branches found
No related tags found
1 merge request!1365Resolve "Filter Options for MetaGer"
......@@ -94,10 +94,10 @@ class AdminInterface extends Controller
public function check ()
{
$q = "";
$logFile = "/var/log/metager/mg3.log";
if( file_exists($logFile) )
$redis = Redis::connection('redisLogs');
if($redis)
{
$q = exec("tail -n 1 $logFile");
$q = $redis->lrange("logs.search", -1, -1)[0];
$q = substr($q, strpos($q, "search=")+7);
}
return view('admin.check')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment