-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sentry: Add enabled config option #11
Conversation
@f3l1x What do you think? |
I get the point. Isn't better to just not register the SentryLogger at all? |
@f3l1x I don't think so. I just register all loggers in config.neon. When I put code on testing instance I do not need logs log into sentry. So I think that it is much easier to have, in config.local.neon this:
than this:
I see that is almost same, but config.local.neon I want to change only values not register new extensions, services .... |
I ment don't register SentryLogger in DI. So your code will be same except for |
@f3l1x When I register Anyway it is up to you. It is not dealbreaker for me, just nice thing to have. :) |
@@ -27,6 +28,7 @@ public function loadConfiguration() | |||
$config = $this->validateConfig($this->defaults); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You still don't get my point.
I was pointing this code:
if ($config['enabled'] === false) return;
Skip adding the whole definition, if it's not enabled (enabled: false).
WDYT?
@f3l1x Ahhh, sorry. I thought that you talk about configuration, not PR. PR is updated. |
Cool, thanks. |
👍 |
Add easy way to disable Sentry logging