anchor.diff:  handle_cast({ServerName, auth, Fd, {Ip, Path, Item}}, State) ->
       case State#state.running of
           true ->
  -            IpStr = case catch inet_parse:ntoa(Ip) of
  -                        {'EXIT', _} -> "unknownip";
  -                        Val -> Val
  -                    end,
  -            Msg = [IpStr, " ", State#state.now, " ", ServerName, " " ,
  +            Msg = [fmt_ip(Ip), " ", State#state.now, " ", ServerName, " " ,
                      "\"", Path,"\"",
                      case Item of
                          {ok, User}       -> [" OK user=", User];
  
positive.code: 
  
  fmt_ip(IP) when is_tuple(IP) ->
      inet_parse:ntoa(IP);
  fmt_ip(undefined) ->
      "0.0.0.0";
  fmt_ip(HostName) ->
  
negative.code:                       {0,9} -> "HTTP/0.9"
                    end,
  
              Path      = yaws_server:safe_decode_path(Req#http_request.path),
              Meth      = yaws:to_list(Req#http_request.method),
              Referer   = optional_header(InH#headers.referer),
              UserAgent = optional_header(InH#headers.user_agent),
  