This introduces an irritation to me. :-)
I'm not seeing -any- debug logging on stderr after this patch. If I
comment out the daemon checks, the dbopen works fine and stuff makes
it to cache.log.
Would you please do a little more digging to figure out why this is and fix it?
Thanks,
Adrian
On 5 November 2010 17:36, <codesite...@google.com> wrote:
> 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 lusca-...@googlegroups.com.
> To unsubscribe from this group, send email to
> lusca-commit...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/lusca-commit?hl=en.
>
>
Adrian
On 13 December 2010 05:23, Roelf Diedericks <roelf.di...@gmail.com> wrote:
> 14831 is the real fix. :)
>
> That leaves normal cache.log logging working as well.
>
> --
> You received this message because you are subscribed to the Google Groups "lusca-users" group.
> To post to this group, send email to lusca...@googlegroups.com.
> To unsubscribe from this group, send email to lusca-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/lusca-users?hl=en.
>
>
I run squid/lusca in gdb and run with -N so I can trap segfaults,
breakpoints, etc. I still want log files to be written to cache.log so
I can do post-testing diagnoses. How do I do that ? :P
Maybe we should introduce another switch? But just to excuse the
ignorance here - why'd you make this change in the first place? I
don't recall any squid < 2.7 having this behaviour w/ -N.
Adrian
Adrian