anchor.diff:  
   
   handle_unexpected(Type, Content, State, {P, _D}) ->
  -    warning_report([{socket,        P#params.socket},
  -                    {unknown_event, {Type, Content}},
  -                    {state,         State}]),
  +    warning_msg("Received unexpected event:"
  +                "~n   Socket:     ~p"
  +                "~n   State:      ~p"
  +                "~n   Event Type: ~p"
  +                "~n   Content:    ~p",
  +                [P#params.socket, State, Type, Content]),
       case Type of
           {call, From} ->
               {keep_state_and_data,
  
positive.code: error_report(Report) ->
      error_logger:error_report(Report).
  
  warning_report(Report) ->
      error_logger:warning_report([{module, ?MODULE}|Report]).
  
  
  
  
negative.code:             {keep_state_and_data,
               [{reply, From, {error, closed}}]};
          _ ->
              warning_msg("Received unexpected event when closed:"
                          "~n   Socket:     ~p"
                          "~n   State:      ~p"
                          "~n   Event Type: ~p"
                          "~n   Content:    ~p",
                          [P#params.socket, State, Type, Content]),
              keep_state_and_data
      end.
  
  