anchor.diff:                      State#state{transacts = orddict:store(ReqKey, {handling, HandlerPid}, Transacts)};
                   {handling, _HandlerPid} ->
                       %% handler process is still working on the request
  -                    dbg(NasProp, "duplicate request (being handled) ~p~n", [ReqKey]),
  +                    lager:debug("duplicate request (being handled) ~p~n", [ReqKey]),
                       inc_nas_counter(dupRequests, NasProp),
                       State;
                   {replied, HandlerPid} ->
                       %% handler process waiting for resend message
                       HandlerPid ! {self(), resend, Socket},
  -                    dbg(NasProp, "duplicate request (resend) ~p~n", [ReqKey]),
  +                    lager:debug("duplicate request (resend) ~p~n", [ReqKey]),
                       inc_nas_counter(dupRequests, NasProp),
                       State
               end;
  
positive.code:             {exit, {Class, Reason}}
      end.
  
  -spec dbg(#nas_prop{}, string(), list()) -> ok.
  dbg(#nas_prop{trace = true}, Fmt, Vals) ->
      io:put_chars([printable_date(), " -- ", io_lib:format(Fmt, Vals)]);
  dbg(_, _, _) ->
      ok.
  
  -spec printable_date() -> io_lib:chars().
  printable_date() ->
      {_ , _, MicroSecs} = Now = now(),
      {{Y, Mo, D}, {H, M, S}} = calendar:now_to_local_time(Now),
      io_lib:format("~4..0b-~2..0b-~2..0b ~2..0b:~2..0b:~2..0b:~4..0b", [Y,Mo,D,H,M,S,MicroSecs div 1000]).
  
  
  request_inc_counter(request, NasProp) ->
  
negative.code:     inc_nas_counter(discNaks, NasProp);
  reply_inc_counter(_Cmd, _NasProp) ->
      ok.
  
  
  