Skip to content

Commit d8ef682

Browse files
authored
fix: prevent crash when logging channel termination reason (#1696)
1 parent a2d7ee5 commit d8ef682

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/realtime_web/channels/realtime_channel.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ defmodule RealtimeWeb.RealtimeChannel do
509509

510510
@impl true
511511
def terminate(reason, %{transport_pid: transport_pid}) do
512-
Logger.debug("Channel terminated with reason: #{reason}")
512+
Logger.debug("Channel terminated with reason: #{inspect(reason)}")
513513
:telemetry.execute([:prom_ex, :plugin, :realtime, :disconnected], %{})
514514
Tracker.untrack(transport_pid)
515515
:ok

0 commit comments

Comments
 (0)