Skip to content

Commit

Permalink
improve logging errors from components
Browse files Browse the repository at this point in the history
  • Loading branch information
mat-hek committed Jun 25, 2024
1 parent a04fbfa commit 070d0e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 1.1.1
* Fix 'table identifier does not refer to an existing ETS table' error when inserting metrics into the observability ETS [#835](https://github.com/membraneframework/membrane_core/pull/835)

## 1.1.0
* Add new callbacks `handle_child_setup_completed/3` and `handle_child_playing/3` in Bins and Pipelines. [#801](https://github.com/membraneframework/membrane_core/pull/801)
* Deprecate `handle_spec_started/3` callback in Bins and Pipelines. [#708](https://github.com/membraneframework/membrane_core/pull/708)
Expand Down
7 changes: 3 additions & 4 deletions lib/membrane/core/utils.ex
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,15 @@ defmodule Membrane.Core.Utils do
try do
unquote(code)
rescue
e ->
error ->
require Membrane.Logger

Membrane.Logger.error("""
Error occured in #{unquote(error_source)}:
#{inspect(e, pretty: true, limit: :infinity)}
#{Exception.format_stacktrace(__STACKTRACE__)}
#{Exception.format(:error, error, __STACKTRACE__)}
""")

reraise e, __STACKTRACE__
reraise error, __STACKTRACE__
end
end
end
Expand Down

0 comments on commit 070d0e5

Please sign in to comment.