From: wessels <> Date: Wed, 25 Apr 2007 22:41:56 +0000 (+0000) Subject: Change diskd default DebugLevel to 0 X-Git-Tag: SQUID_3_0_PRE6~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4606929410b87a8c4f5ae71c3daf4a6dd3ebdac3;p=thirdparty%2Fsquid.git Change diskd default DebugLevel to 0 At DebugLevel = 1, diskd prints "errors" to cache.log when operations such as open, read, and unlink fail. These "errors" are not fatal. In fact, some are to be expected due to the asynchronous nature of diskd. The upper layers of Squid are designed to handle these "errors" gracefully. They should not be in the log by default because naive users may report them as bugs. --- diff --git a/src/DiskIO/DiskDaemon/diskd.cc b/src/DiskIO/DiskDaemon/diskd.cc index 6a8e37b86e..ac51d4d897 100644 --- a/src/DiskIO/DiskDaemon/diskd.cc +++ b/src/DiskIO/DiskDaemon/diskd.cc @@ -1,5 +1,5 @@ /* - * $Id: diskd.cc,v 1.6 2007/04/12 23:51:57 wessels Exp $ + * $Id: diskd.cc,v 1.7 2007/04/25 16:41:56 wessels Exp $ * * DEBUG: section -- External DISKD process implementation. * AUTHOR: Harvest Derived @@ -66,7 +66,7 @@ struct _file_state static hash_table *hash = NULL; static pid_t mypid; static char *shmbuf; -static int DebugLevel = 1; +static int DebugLevel = 0; static int do_open(diomsg * r, int len, const char *buf)