anchor.diff:              ok
       end.
   
  -log_request(Req, #base_state{reqid = ReqId, log_msg = Msg, organization_name = Org,
  -                             darklaunch = Darklaunch}) ->
  -    Status = wrq:response_code(Req),
  -    Tuples = [{req_id, ReqId},
  -              {status, Status},
  -              {method, wrq:method(Req)},
  -              {path, wrq:raw_path(Req)},
  -              {user, wrq:get_req_header("x-ops-userid", Req)},
  -              {msg, {raw, Msg}}],
  -    PerfTuples = stats_hero:snapshot(ReqId, agg),
  -    Level = log_level(Status),
  -    fast_log:Level(erchef, maybe_add_org_specific(Org, Darklaunch, Tuples) ++ PerfTuples).
  -
  -log_level(Code) when Code >= 500 ->
  -    err;
  -log_level(_) ->
  -    info.
  +%% @doc Helper function to annotate requests for logging
  +add_notes([], Req) ->
  +    Req;
  +add_notes([{Key, Value} | Rest], Req) ->
  +    add_notes(Rest, wrq:add_note(Key, Value, Req)).
   
   fetch_org_guid(#base_state{organization_guid = Id}) when is_binary(Id) ->
       Id;
  
positive.code: %% under the License.
  %%
  
  
  -module(chef_wm_base).
  
  %% Complete webmachine callbacks
  
negative.code:         Guid -> Guid
      end.
  
  maybe_annotate_org_specific(?OSC_ORG_NAME, _Darklaunch, Req) ->
      Req;
  maybe_annotate_org_specific(OrgName, Darklaunch, Req) ->
      %% Generate the darklaunch header in a form that won't break log parsing
      DLData = chef_wm_darklaunch:get_proplist(Darklaunch),
      add_notes([{org_name, OrgName},
                 {darklaunch, DLData}], Req).
  
  %% If request results in a rename, then set Location header and wm will return with a 201.
  %% Currently, only the clients endpoint supports rename
  