@@ -185,7 +185,7 @@ defmodule Membrane.Core.CallbackHandler do
185
185
Error handling actions returned by callback #{ inspect ( state . module ) } .#{ callback }
186
186
""" )
187
187
188
- log_debug_orginal_error ( actions , e , __STACKTRACE__ )
188
+ log_error_orginal_error ( actions , e , __STACKTRACE__ )
189
189
190
190
reraise e , __STACKTRACE__
191
191
end
@@ -197,10 +197,11 @@ defmodule Membrane.Core.CallbackHandler do
197
197
rescue
198
198
e ->
199
199
Membrane.Logger . error ( """
200
- Error handling action #{ inspect ( action ) } returned by callback #{ inspect ( state . module ) } .#{ callback }
200
+ Error handling action returned by callback #{ inspect ( state . module ) } .#{ callback } .
201
+ Action: #{ inspect ( action , pretty: true ) }
201
202
""" )
202
203
203
- log_debug_orginal_error ( action , e , __STACKTRACE__ )
204
+ log_error_orginal_error ( action , e , __STACKTRACE__ )
204
205
205
206
reraise e , __STACKTRACE__
206
207
end
@@ -212,15 +213,12 @@ defmodule Membrane.Core.CallbackHandler do
212
213
# We log it, because sometimes, for some reason, crashing process doesn't cause
213
214
# printing error logs on stderr, so this debug log allows us to get some info
214
215
# about what happened in case of process crash
215
- defp log_debug_orginal_error ( action_or_actions , error , stacktrace ) do
216
+ defp log_error_orginal_error ( action_or_actions , error , stacktrace ) do
216
217
action_or_actions =
217
218
if ( is_list ( action_or_actions ) , do: "actions " , else: "action " ) <>
218
219
inspect ( action_or_actions , limit: :infinity )
219
220
220
- Membrane.Logger . debug ( """
221
- Error while handling #{ action_or_actions }
222
-
223
- Orginal error:
221
+ Membrane.Logger . error ( """
224
222
#{ inspect ( error , pretty: true , limit: :infinity ) }
225
223
#{ Exception . format_stacktrace ( stacktrace ) }
226
224
""" )
0 commit comments