You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setting voryx_thruway.enable_logging flag to false, the code in VoryxThruwayExtension.php is called only on the first run. When you relaunch the command a bit later, the log is still displayed on the console.
A suggestion would be to connect the Symfony 'logger' service to the Thruway\Logging\Logger so that the command can take benefit of -v -vv and -vvv options.
It is easy to achieve that outside of ThruwayBundle using the following code:
use Symfony\Component\Console\Event\ConsoleCommandEvent;
use Psr\Log\NullLogger;
use Thruway\Logging\Logger;
class SetVoryxLoggerListener
{
public function onConsoleCommand(ConsoleCommandEvent $event)
{
Logger::set($event->getDispatcher()->getContainer()->get('logger'));
}
}
When setting voryx_thruway.enable_logging flag to false, the code in VoryxThruwayExtension.php is called only on the first run. When you relaunch the command a bit later, the log is still displayed on the console.
A suggestion would be to connect the Symfony 'logger' service to the Thruway\Logging\Logger so that the command can take benefit of -v -vv and -vvv options.
It is easy to achieve that outside of ThruwayBundle using the following code:
And declare a service:
The text was updated successfully, but these errors were encountered: