]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
support for RFC931/ident
authorwessels <>
Thu, 2 May 1996 04:38:55 +0000 (04:38 +0000)
committerwessels <>
Thu, 2 May 1996 04:38:55 +0000 (04:38 +0000)
src/Makefile.in
src/stat.cc

index 26f66e36ab04fc16a071f0c04000492bc5b78699..488e1c78f358ba348822b6ad99484304f41d31ef 100644 (file)
@@ -1,7 +1,7 @@
 #
 #  Makefile for the Squid Object Cache server
 #
-#  $Id: Makefile.in,v 1.23 1996/05/01 22:36:23 wessels Exp $
+#  $Id: Makefile.in,v 1.24 1996/05/01 22:38:55 wessels Exp $
 #
 #  Uncomment and customize the following to suit your needs:
 #
@@ -45,7 +45,7 @@ CGIPROGS      = cachemgr.cgi
 OBJS           = acl.o background.o cache_cf.o errorpage.o comm.o \
                connect.o debug.o disk.o dynamic_array.o \
                fdstat.o filemap.o ftp.o gopher.o \
-               hash.o http.o icp.o ipcache.o \
+               hash.o http.o icp.o ident.o ipcache.o \
                main.o mime.o neighbors.o objcache.o \
                proto.o send-announce.o stack.o stat.o stmem.o \
                store.o storetoString.o tools.o ttl.o \
index bb4ea1911a212d74ab7de2fff58334fe823fb937..5a748830e067a6d91db980fa09c52b888e8a1465 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: stat.cc,v 1.32 1996/05/01 22:37:13 wessels Exp $ */
+/* $Id: stat.cc,v 1.33 1996/05/01 22:38:57 wessels Exp $ */
 
 /*
  * DEBUG: Section 18          stat
@@ -655,7 +655,7 @@ void parameter_get(obj, sentry)
 }
 
 
-void log_append(obj, url, id, size, action, method, http_code, msec)
+void log_append(obj, url, id, size, action, method, http_code, msec, ident)
      cacheinfo *obj;
      char *url;
      char *id;
@@ -664,6 +664,7 @@ void log_append(obj, url, id, size, action, method, http_code, msec)
      char *method;
      int http_code;
      int msec;
+     char *ident;
 {
     static char tmp[6000];     /* MAX_URL is 4096 */
     char *buf = NULL;
@@ -690,13 +691,15 @@ void log_append(obj, url, id, size, action, method, http_code, msec)
        method = "-";
     if (!url)
        url = "-";
+    if (!ident || ident[0] == '\0')
+       ident = "-";
 
     if (obj->logfile_status == LOG_ENABLE) {
        if (emulate_httpd_log)
            sprintf(tmp, "%s - - [%s] \"%s %s\" %s %d\n",
                id, mkhttpdlogtime(&squid_curtime), method, url, action, size);
        else
-           sprintf(tmp, "%9d.%03d %6d %s %s/%03d %d %s %s\n",
+           sprintf(tmp, "%9d.%03d %6d %s %s/%03d %d %s %s %s\n",
                (int) current_time.tv_sec,
                (int) current_time.tv_usec / 1000,
                msec,
@@ -705,7 +708,8 @@ void log_append(obj, url, id, size, action, method, http_code, msec)
                http_code,
                size,
                method,
-               url);
+               url,
+               ident);
 
 
        if (file_write(obj->logfile_fd, buf = xstrdup(tmp), strlen(tmp),