ostinelli / cowbell

An Erlang node connection manager.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash from mis-written logging

Lazarus404 opened this issue · comments

We're currently seeing a crash in our monitoring from Cowbell:

=CRASH REPORT==== 23-Jun-2017::13:49:19 ===
 crasher:
   initial call: Elixir.Logger.Watcher:init/1
   pid: <0.26281.5>
   registered_name: []
   exception exit: {‘EXIT’,
                       {badarg,
                           [{io_lib,format,
                                [“Node ‘~p’ got disconnected but not in list of monitored nodes, ignoring”,
                                 []],
                                [{file,“io_lib.erl”},{line,168}]},

It appears to be because the logging at that line is missing the parameter promised by the ~p character.

         false ->
            error_logger:warning_msg("Node '~p' got disconnected but not in list of monitored nodes, ignoring"),
            %% reply
            {noreply, State}

Thanks,
Lee

Thank you @Lazarus404 will merge ASAP.

This is now in 1.0.1.