anchor.diff:                    EntitySpecificPayload) ->
       Msg = {[{<<"message_type">>, <<"action">>},
               {<<"message_version">>, ?CHEF_ACTIONS_MESSAGE_VERSION},
  -            {<<"organization_name">>, OrgName},
  +            {<<"organization_name">>, get_org_name(OrgName)},
               %% Request Level Info
               {<<"service_hostname">>, hostname()},
               {<<"recorded_at">>, req_header("x-ops-timestamp", Req)},
  
positive.code: 
  -spec hostname() -> binary().
  hostname() ->
     envy:get(oc_chef_wm, actions_fqdn, binary).
  
  
  get_cookbook_version({Major, Minor, Patch} = Version) when Major >=0, Minor >=0, Patch >=0 ->
     chef_cookbook_version:version_to_binary(Version).
  
  req_header(Name, Req) ->
    case wrq:get_req_header(Name, Req) of
       undefined ->
           undefined;
       Header ->
           iolist_to_binary(Header)
    end.
  
  
negative.code:     %% TODO - chef_wm_environments endpoint puts a chef_environment{} directly
      %% into the resource_state record
      ok;
  log_action(Req, #base_state{resource_state = ResourceState,
                              resource_mod = ResourceMod} = State) when
          is_record(ResourceState, association_state);
          is_record(ResourceState, client_state);
          is_record(ResourceState, cookbook_state);
          is_record(ResourceState, data_state);
          is_record(ResourceState, environment_state);
          is_record(ResourceState, group_state);
          is_record(ResourceState, organization_state);
          is_record(ResourceState, node_state);
          is_record(ResourceState, role_state);
          is_record(ResourceState, user_state) ->
      case wrq:method(Req) of
          'GET' ->
              ok;
          _ElseMethod -> %% POST, PUT, DELETE
              case ResourceMod of
                  oc_chef_wm_authenticate_user ->  %% POST to authenticate_user should not be an action.
                      ok;
                  _ElseMod ->
                      case wrq:response_code(Req) of
                          Code when Code =:= 200; Code =:= 201 ->
                              log_action0(Req, State);
                          _ElseStatus ->
                              ok
                      end
              end
      end;
  log_action(Req, #base_state{resource_state = ResourceState} = State) ->
      ShouldLogUnEnabledActions = envy:get(oc_chef_wm, log_unenabled_actions, false, boolean),
      case ShouldLogUnEnabledActions of
          true -> Task = task(Req, State),
              lager:info("Action ~p not enabled for ~p\n", [Task, ResourceState]);
          false -> ok
      end.
  
  -spec  log_action0(Req :: wm_req(),
  