Fix log view

This commit is contained in:
Romain Neutron
2012-05-24 16:58:57 +02:00
parent d0f9794bfb
commit 45422d01b4
4 changed files with 47 additions and 56 deletions

View File

@@ -104,8 +104,8 @@ class module_console_taskrun extends Command
$logger->pushHandler($handler);
}
$logfile = __DIR__ . '/../../../../task_l_' . $task_id . '.log';
$handler = new Handler\RotatingFileHandler($logfile, 10, $level = Logger::WARNING);
$logfile = __DIR__ . '/../../../../logs/task_' . $task_id . '.log';
$handler = new Handler\RotatingFileHandler($logfile, 10);
$logger->pushHandler($handler);
$this->task = $task_manager->getTask($task_id, $logger);