anchor.diff:  -compile([export_all]).
   -endif.
   
  --define(CHEF_ACTIONS_MESSAGE_VERSION, <<"0.1.0">>).
  +-define(CHEF_ACTIONS_MESSAGE_VERSION, <<"0.1.1">>).
   
   -spec log_action(Req :: wm_req(),
                    State :: #base_state{}) -> ok.
  
positive.code:                     ok
              end
      end;
  log_action(_Req, _State) ->
      %% unknown state
      ok.
  
  -spec  log_action0(Req :: wm_req(),
                     State :: #base_state{}) -> ok.
  
negative.code: 
  maybe_add_data(Msg, []) ->
      Msg;
  maybe_add_data(Msg, undefined) ->
      ej:set({<<"data">>}, Msg, {[]});
  maybe_add_data(Msg, FullActionPayload) ->
      ej:set({<<"data">>}, Msg, FullActionPayload).
  
  