refactor: consistent log message for new events
MODIFY
apps/omg_child_chain/lib/omg_child_chain/monitor.ex
apps/omg_child_chain/lib/omg_child_chain/monitor.ex
@@ -74,7 +74,7 @@ defmodule OMG.ChildChain.Monitor do
# flush
def handle_event(event, state) do
- _ = Logger.info("Monitor got event: #{inspect(event)}. Ignoring.")
+ _ = Logger.info("#{__MODULE__} got event: #{inspect(event)}. Ignoring.")
{:ok, state}
end

MODIFY
apps/omg_status/lib/omg_status/monitor/memory_monitor.ex
apps/omg_status/lib/omg_status/monitor/memory_monitor.ex
@@ -111,7 +111,7 @@ defmodule OMG.Status.Monitor.MemoryMonitor do
end
def handle_event(event, state) do
- _ = Logger.info("#{inspect(__MODULE__)} got event: #{inspect(event)}. Ignoring.")
+ _ = Logger.info("#{__MODULE__} got event: #{inspect(event)}. Ignoring.")
{:ok, state}
end

MODIFY
apps/omg_status/lib/omg_status/monitor/statsd_monitor.ex
apps/omg_status/lib/omg_status/monitor/statsd_monitor.ex
@@ -108,7 +108,7 @@ defmodule OMG.Status.Monitor.StatsdMonitor do
# flush
def handle_event(event, state) do
- _ = Logger.info("inspect(#{__MODULE__}) got event: #{inspect(event)}. Ignoring.")
+ _ = Logger.info("#{__MODULE__} got event: #{inspect(event)}. Ignoring.")
{:ok, state}
end

MODIFY
apps/omg_watcher/lib/omg_watcher/monitor.ex
apps/omg_watcher/lib/omg_watcher/monitor.ex
@@ -73,7 +73,7 @@ defmodule OMG.Watcher.Monitor do
# flush
def handle_event(event, state) do
- _ = Logger.info("Monitor got event: #{inspect(event)}. Ignoring.")
+ _ = Logger.info("#{__MODULE__} got event: #{inspect(event)}. Ignoring.")
{:ok, state}
end

refactor: consistent log message for new events (#1534)