|
@@ -3,6 +3,7 @@ |
|
|
namespace OrpheusNET\Logchecker; |
|
|
namespace OrpheusNET\Logchecker; |
|
|
|
|
|
|
|
|
use OrpheusNET\Logchecker\Check\Ripper; |
|
|
use OrpheusNET\Logchecker\Check\Ripper; |
|
|
|
|
|
use OrpheusNET\Logchecker\Exception\UnknownRipperException; |
|
|
use OrpheusNET\Logchecker\Parser\EAC\Translator; |
|
|
use OrpheusNET\Logchecker\Parser\EAC\Translator; |
|
|
use Symfony\Component\Yaml\Yaml; |
|
|
use Symfony\Component\Yaml\Yaml; |
|
|
use Symfony\Component\Yaml\Exception\ParseException; |
|
|
use Symfony\Component\Yaml\Exception\ParseException; |
|
@@ -108,9 +109,18 @@ class Logchecker |
|
|
} catch (\Exception $exc) { |
|
|
} catch (\Exception $exc) { |
|
|
$this->Score = 0; |
|
|
$this->Score = 0; |
|
|
$this->account('Could not detect log encoding, log is corrupt.'); |
|
|
$this->account('Could not detect log encoding, log is corrupt.'); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
|
$this->ripper = Ripper::getRipper($this->log); |
|
|
|
|
|
} catch (UnknownRipperException $exc) { |
|
|
|
|
|
$this->Score = 0; |
|
|
|
|
|
$this->account('Unknown log file, could not determine ripper.'); |
|
|
|
|
|
$this->ripper = Ripper::UNKNOWN; |
|
|
|
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
$this->ripper = Ripper::getRipper($this->log); |
|
|
|
|
|
if ($this->ripper === Ripper::WHIPPER) { |
|
|
if ($this->ripper === Ripper::WHIPPER) { |
|
|
$this->whipperParse(); |
|
|
$this->whipperParse(); |
|
|
} else { |
|
|
} else { |
|
|