logging documentation/feature issues

Paul A Vixie vixie at mibh.net
Tue Aug 10 22:01:41 UTC 1999


> Documentation suggestion:  Please add an example of channel's "file"
> option's options.

we love documentation.  please send diffs :-).

> SEPERATE ISSUE:
> 
> The other thing that I noticed was that the logs get rotated on start up
> even if they haven't reached the max size.  This means that while
> debugging a configuration recently I was not able to ever grep the right
> log file.  "The right file" was constantly being renumbered.  It wasn't
> fun. Could the rotation algorithm not run on startup?

well, with the proviso that this may not pass muster with the author of the
logging subsystem, here's a thing to try:

Index: src/lib/isc/logging.c
===================================================================
RCS file: /proj/cvs/isc/bind/src/lib/isc/logging.c,v
retrieving revision 8.21
diff -u -r8.21 logging.c
--- src/lib/isc/logging.c       1999/07/07 19:33:35     8.21
+++ src/lib/isc/logging.c       1999/08/10 21:50:12
@@ -115,9 +115,7 @@
                regular = (sb.st_mode & S_IFREG);
 
        if (chan->out.file.versions) {
-               if (regular)
-                       version_rename(chan);
-               else {
+               if (!regular) {
                        syslog(LOG_ERR,
        "log_open_stream: want versions but %s isn't a regular file",
                               chan->out.file.name);


More information about the bind-workers mailing list