mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
Merge pull request #603 from romainneutron/fix-1422
Fix 1422 : logfiles contain duplicates log messages
This commit is contained in:
@@ -122,10 +122,6 @@ class module_console_taskrun extends Command
|
|||||||
$logger->pushHandler($handler);
|
$logger->pushHandler($handler);
|
||||||
}
|
}
|
||||||
|
|
||||||
$logfile = __DIR__ . '/../../../../logs/task_' . $task_id . '.log';
|
|
||||||
$handler = new RotatingFileHandler($logfile, 10);
|
|
||||||
$logger->pushHandler($handler);
|
|
||||||
|
|
||||||
$this->task = $task_manager->getTask($task_id, $logger);
|
$this->task = $task_manager->getTask($task_id, $logger);
|
||||||
|
|
||||||
register_tick_function(array($this, 'tick_handler'), true);
|
register_tick_function(array($this, 'tick_handler'), true);
|
||||||
|
Reference in New Issue
Block a user