kutny / tracy-bundle

Tracy PHP debugger bundle for Symfony framework
MIT License
28 stars 5 forks source link

Configure exceptions directory #1

Closed mvrhov closed 10 years ago

kutny commented 10 years ago

Thanks, merging.

kutny commented 10 years ago

Would you update the docs too, please,

mvrhov commented 10 years ago

Will do on monday

kutny commented 10 years ago

I wonder if we should put all (or some) other Tracy configuration options to the bundle configuration too. Currently some options must be set using kutny_tracy Symfony2 configuration (log directory) and some other directly by setting Debugger's public properties:

Debugger::$strictMode = true
Debugger::$productionMode = false;
Debugger::$email = 'errors@example.com';

I suggest that we should put all Tracy configuration options to Bundle configuration:

It that case every developer would be able to set all settings easily for specific environments in Symfony configuration.

What do you think?

mvrhov commented 10 years ago

I'd leave strict and production for front controller, it's the same way for symfony's own debugger. The reason being that we can catch everything that way, if the configuration for those is left to the bundle we might not catch the errors that could happen up till the time bundle configures (We do have such window now, but this are mostly fatal errors). I do agree on email..