Samba DEBUG in OpenChange

Christof Schmitt cs at samba.org
Mon Dec 7 18:03:28 UTC 2015


On Sun, Dec 06, 2015 at 11:14:00AM +0100, Volker Lendecke wrote:
> On Sat, Dec 05, 2015 at 10:31:37PM +0000, Jelmer Vernooij wrote:
> > > Sure. What I propose is a patch to Samba's debug.c, along
> > > the lines of f9e92fc or 1257977.
> > 
> > How would that only log openchange-related NDR calls to the openchange
> > backend and the other calls to another backend?
> 
> I haven't tried, but I'd say
> 
> logging = openchange at ndr:10 syslog at 1 file
> 
> should do it.

That does not work with the current code. debug_backend_parse_token just
calls atoi to get the log level. At this point, the logging to backends
just filters by one log level, it is not look at the classes.

Christof

> > Samba can't link against OpenChange, as that would create a circular
> > dependency - OpenChange already links against Samba.
> 
> Right. We'd need something that both Samba and OpenChange
> can link to. It would be mainly a function that accepts a
> string.
> 
> Volker
> 
> -- 
> SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
> phone: +49-551-370000-0, fax: +49-551-370000-9
> AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
> http://www.sernet.de, mailto:kontakt at sernet.de
> 



More information about the samba-technical mailing list