mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Remove custom logging from nntmux, laravel handles errors now
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user