#
# 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:
#
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 \
-/* $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
}
-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;
char *method;
int http_code;
int msec;
+ char *ident;
{
static char tmp[6000]; /* MAX_URL is 4096 */
char *buf = NULL;
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,
http_code,
size,
method,
- url);
+ url,
+ ident);
if (file_write(obj->logfile_fd, buf = xstrdup(tmp), strlen(tmp),