Revision: 14830
Author: roelf.diedericks
Date: Sun Dec 12 13:15:13 2010
Log: Fix regression where -N command line switch wouldn't neccesarily do stderr
logging correctly

http://code.google.com/p/lusca-cache/source/detail?r=14830

Modified:
 /branches/LUSCA_HEAD/src/main.c

=======================================
--- /branches/LUSCA_HEAD/src/main.c     Fri Nov  5 02:35:07 2010
+++ /branches/LUSCA_HEAD/src/main.c     Sun Dec 12 13:15:13 2010
@@ -430,8 +430,8 @@
     setUmask(Config.umask);
     setEffectiveUser();
     _db_init(Config.debugOptions);
-       if (!opt_no_daemon)
-               _db_init_log(Config.Log.log);
+       if (opt_no_daemon)
+               _db_init_log(NULL);

/* XXX the ipcache/fqdncache config variables need to be set before this is called! */
     ipcache_local_params();
@@ -581,8 +581,8 @@
        Config.Port.icp = (u_short) icpPortNumOverride;

     _db_init(Config.debugOptions);
-       if (!opt_no_daemon)
-               _db_init_log(Config.Log.log);
+       if (opt_no_daemon)
+               _db_init_log(NULL);
     fd_open(fileno(debug_log), FD_LOG, Config.Log.log);
 #if MEM_GEN_TRACE
     log_trace_init("/tmp/squid.alloc");

--
You received this message because you are subscribed to the Google Groups 
"lusca-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/lusca-commit?hl=en.

Reply via email to