Commit a4a6ff8a authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Update Search.php

Schreibende Logs entfernt
parent cd6b8a03
...@@ -8,7 +8,6 @@ use Illuminate\Queue\InteractsWithQueue; ...@@ -8,7 +8,6 @@ use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use Redis; use Redis;
use Log;
class Search extends Job implements ShouldQueue class Search extends Job implements ShouldQueue
{ {
...@@ -107,7 +106,6 @@ class Search extends Job implements ShouldQueue ...@@ -107,7 +106,6 @@ class Search extends Job implements ShouldQueue
$bodySize = strlen($body); $bodySize = strlen($body);
}else }else
{ {
Log::error("Konnte nicht herausfinden, wie ich die Serverantwort von: " . $this->name . " auslesen soll. Header war: " . print_r($headers));
exit; exit;
} }
}else }else
...@@ -261,12 +259,6 @@ class Search extends Job implements ShouldQueue ...@@ -261,12 +259,6 @@ class Search extends Job implements ShouldQueue
if($tmp){ if($tmp){
$sent += $tmp; $sent += $tmp;
$string = substr($string, $tmp); $string = substr($string, $tmp);
}else
Log::error("Fehler beim schreiben.");
if(((microtime(true) - $time) / 1000000) >= 500)
{
Log::error("Konnte die Request Daten nicht an: " . $this->name . " senden");
} }
if($sent >= strlen($out)) if($sent >= strlen($out))
...@@ -301,11 +293,8 @@ class Search extends Job implements ShouldQueue ...@@ -301,11 +293,8 @@ class Search extends Job implements ShouldQueue
try try
{ {
$fp = pfsockopen($this->getHost() . ":" . $this->port . "/$counter", $this->port, $errstr, $errno, 1); $fp = pfsockopen($this->getHost() . ":" . $this->port . "/$counter", $this->port, $errstr, $errno, 1);
if(!$fp)
Log::error("lkajng");
}catch(\ErrorException $e) }catch(\ErrorException $e)
{ {
Log::error('Fehler beim erstellen des Sockets zu: ' . $this->getHost());
break; break;
} }
# Wir gucken, ob der Lesepuffer leer ist: # Wir gucken, ob der Lesepuffer leer ist:
...@@ -313,11 +302,9 @@ class Search extends Job implements ShouldQueue ...@@ -313,11 +302,9 @@ class Search extends Job implements ShouldQueue
$string = fgets($fp, 8192); $string = fgets($fp, 8192);
if( $string !== false || feof($fp) ) if( $string !== false || feof($fp) )
{ {
Log::error("Der Lesepuffer von: " . $this->name . " war nach dem Erstellen nicht leer. Musste den Socket neu starten.");
fclose($fp); fclose($fp);
continue; continue;
} }
Log::info($this->getHost() . ":" . $this->port . "/$counter");
break; break;
} }
$counter++; $counter++;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment