Remove custom logging from nntmux, laravel handles errors now

This commit is contained in:
DariusIII
2017-12-21 12:41:28 +01:00
parent f09f2e193f
commit 55e8ab34d2
23 changed files with 450 additions and 1444 deletions
-3
View File
@@ -11,7 +11,6 @@ use nntmux\Games;
use nntmux\Movie;
use nntmux\Music;
use nntmux\Groups;
use nntmux\Logger;
use nntmux\Console;
use nntmux\Sharing;
use nntmux\Category;
@@ -116,7 +115,6 @@ class PostProcess
$this->pdo = (($options['Settings'] instanceof DB) ? $options['Settings'] : new DB());
$this->groups = (($options['Groups'] instanceof Groups) ? $options['Groups'] : new Groups(['Settings' => $this->pdo]));
$this->_par2Info = new Par2Info();
$this->debugging = ($options['Logger'] instanceof Logger ? $options['Logger'] : new Logger(['ColorCLI' => $this->pdo->log]));
$this->nameFixer = (($options['NameFixer'] instanceof NameFixer) ? $options['NameFixer'] : new NameFixer(['Echo' => $this->echooutput, 'Settings' => $this->pdo, 'Groups' => $this->groups]));
$this->Nfo = (($options['Nfo'] instanceof Nfo) ? $options['Nfo'] : new Nfo(['Echo' => $this->echooutput, 'Settings' => $this->pdo]));
$this->releaseFiles = (($options['ReleaseFiles'] instanceof ReleaseFiles) ? $options['ReleaseFiles'] : new ReleaseFiles($this->pdo));
@@ -387,7 +385,6 @@ class PostProcess
// If we found some files.
if ($filesAdded > 0) {
$this->debugging->log(__CLASS__, __FUNCTION__, 'Added '.$filesAdded.' release_files from PAR2 for '.$query['searchname'], Logger::LOG_INFO);
// Update the file count with the new file count + old file count.
Release::query()->where('id', $relID)->increment('rarinnerfilecount', $filesAdded);