Skip to content

Commit

Permalink
feat: add process info to ErlSysMon (#2101)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziinc authored Jun 14, 2024
1 parent 01fceb4 commit 3b4d3f0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/logflare/erl_sys_mon.ex
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,15 @@ defmodule Logflare.ErlSysMon do
end

def handle_info(msg, state) do
Logger.warning("#{__MODULE__} message: " <> inspect(msg))
pid_info =
case msg do
{:monitor, pid, _type, _meta} ->
Process.info(pid, [:dictionary])
end

Logger.warning(
"#{__MODULE__} message: " <> inspect(msg) <> " | process info: #{inspect(pid_info)}"
)

{:noreply, state}
end
Expand Down

0 comments on commit 3b4d3f0

Please sign in to comment.