Revision: 14823
Author: roelf.diedericks
Date: Fri Nov 5 02:35:07 2010
Log: This just fixes a developer irritation.
When running squid as no-daemon '-N' switch, do not open the cache.log files
so that we can see lusca's debugging on stdout instead of having to go
rummage
about in cache.log
http://code.google.com/p/lusca-cache/source/detail?r=14823
Modified:
/branches/LUSCA_HEAD/src/main.c
=======================================
--- /branches/LUSCA_HEAD/src/main.c Wed Apr 21 07:10:06 2010
+++ /branches/LUSCA_HEAD/src/main.c Fri Nov 5 02:35:07 2010
@@ -430,7 +430,8 @@
setUmask(Config.umask);
setEffectiveUser();
_db_init(Config.debugOptions);
- _db_init_log(Config.Log.log);
+ if (!opt_no_daemon)
+ _db_init_log(Config.Log.log);
/* XXX the ipcache/fqdncache config variables need to be set before
this is called! */
ipcache_local_params();
@@ -580,7 +581,8 @@
Config.Port.icp = (u_short) icpPortNumOverride;
_db_init(Config.debugOptions);
- _db_init_log(Config.Log.log);
+ if (!opt_no_daemon)
+ _db_init_log(Config.Log.log);
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.