Skip to content

Commit 04019a2

Browse files
committed
Remove unused variables
1 parent 38ae233 commit 04019a2

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

lib/membrane/core/callback_handler.ex

+3-7
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ defmodule Membrane.Core.CallbackHandler do
185185
Error handling actions returned by callback #{inspect(state.module)}.#{callback}
186186
""")
187187

188-
log_error_orginal_error(actions, e, __STACKTRACE__)
188+
log_error_orginal_error(e, __STACKTRACE__)
189189

190190
reraise e, __STACKTRACE__
191191
end
@@ -201,7 +201,7 @@ defmodule Membrane.Core.CallbackHandler do
201201
Action: #{inspect(action, pretty: true)}
202202
""")
203203

204-
log_error_orginal_error(action, e, __STACKTRACE__)
204+
log_error_orginal_error(e, __STACKTRACE__)
205205

206206
reraise e, __STACKTRACE__
207207
end
@@ -213,11 +213,7 @@ defmodule Membrane.Core.CallbackHandler do
213213
# We log it, because sometimes, for some reason, crashing process doesn't cause
214214
# printing error logs on stderr, so this debug log allows us to get some info
215215
# about what happened in case of process crash
216-
defp log_error_orginal_error(action_or_actions, error, stacktrace) do
217-
action_or_actions =
218-
if(is_list(action_or_actions), do: "actions ", else: "action ") <>
219-
inspect(action_or_actions, limit: :infinity)
220-
216+
defp log_error_orginal_error(error, stacktrace) do
221217
Membrane.Logger.error("""
222218
#{inspect(error, pretty: true, limit: :infinity)}
223219
#{Exception.format_stacktrace(stacktrace)}

0 commit comments

Comments
 (0)