[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: printing Sleepycat version always



Aaron Richton writes:
> -               Debug( LDAP_DEBUG_TRACE, LDAP_XSTRING(bdb_back_initialize)
> +               Debug( LDAP_DEBUG_ANY, LDAP_XSTRING(bdb_back_initialize)
>                          ": %s\n", version, 0, 0 );
>          }
>
> I'm definitely one for 'quiet' software, but knowing the version of libdb
> is a really nice detail when assisting users of OpenLDAP. This would make
> it that much easier to have them find it. I'd argue there's a bit of
> precedent:
>
> main.c: Debug( LDAP_DEBUG_ANY, "%s", Versionstr, 0, 0 );

That's not done in slap tools though.  Which I like.  No need to filter
out "friendly" output from slap tools in in cron jobs &co.

How about (slapMode & SLAP_TOOL_MODE) ? LDAP_DEBUG_TRACE : LDAP_DEBUG_ANY?

Also, is it a good or bad idea to move this and Sleepycat initialization
to the first time '<database/backend> <bdb/hdb>' is used?

-- 
Hallvard