-
Notifications
You must be signed in to change notification settings - Fork 56
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
Notify on :error level Logger messages #276
Comments
There isn't any reason not to do this now. We already use the error logger to do our reporting. Slight refinement though, we notify on both exceptions (rescue) and crashes (catch). |
Hey, just commenting here instead of #315 because this one is still open. I question whether this was a sensible choice. I work on several large and long-running Elixir apps and was surprised to see my HB errors go through the roof after updating a bunch of deps, including the HB client. I'm going to unhook it from the logger by setting Anyway, my two cents... And probably a moot argument if the default for use_logger is false... someone please holler if setting |
@yukster good points. I think that It seems like |
@joshuap thanks for the fast response! I have to say, I'm a bit confused by the SASL logging docs, especially because it says that SASL logger was deprecated in OTP 21 (I think we're on 23 across the board). Well, I'm going to test this throughly to make sure crashes still go to HB. |
So I confirmed that I will only get notifications from the plug integration with |
@joshuap , how do you mean by two config options? ignored_domains: [:elixir] with this option error logs from GenServer is sent to HB: {
"domain" : ["otp"],
"error_logger" : {
"report_cb" : "&:gen_server.format_log/1",
"tag" : "error"
},
"gl" : "#PID<0.66.0>",
"mfa" : [
"gen_server",
"error_info",
7
]
Kindly confirm my assumption if its true, does all SASL crashes fall under |
I'm not sure about the answer to that question. Might be a good question for the Elixir forums or Slack channel. If yes, I agree that ignoring the domain could be a good option, although I'm also not against adding an explicit configuration option to disable reporting |
I've posted the question on Elixir Forum, I'll follow up with it for responses |
We had a customer that expected the
Logger.error
call to notify Honeybadger. It looks like it would be a trivial change to allow notifying on logger error calls.My question (@joshuap @sorentwo) is there a reason that we only notify on process crashes?
The text was updated successfully, but these errors were encountered: