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