-
Notifications
You must be signed in to change notification settings - Fork 39
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
Ensure error logs are always printed #822
Conversation
lib/membrane/core/macros.ex
Outdated
@@ -0,0 +1,24 @@ | |||
defmodule Membrane.Core.Macros do |
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.
defmodule Membrane.Core.Macros do | |
defmodule Membrane.Core.Utils do |
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.
How about adding it to other GenServers that we define in Core as well (like ResourceGuard etc.?)
lib/membrane/core/element.ex
Outdated
Macros.log_on_error do | ||
do_handle_info(message, state) | ||
end |
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.
why Telemetry.report_metric
is outside of the Macros.log_on_error
?
Co-authored-by: Łukasz Kita <[email protected]>
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.
Initially I just thought of adding it only in other processes that can execute users code (just like ResourceGuard
, which executes registered user's lambda), but since you have added logging to all GenServers it's even better, as it will be easier for us to debug if we made some mistakes :D
No description provided.