[RFC] syslog output from SAL_* messages

Miklos Vajna vmiklos at suse.cz
Tue Dec 18 01:04:16 PST 2012


Hi Riccardo,

On Tue, Dec 18, 2012 at 09:55:23AM +0100, Riccardo Magliocchetti <riccardo.magliocchetti at gmail.com> wrote:
> I totally overlooked this :) shouldn't i have seen the WARNs though?

IIRC you get WARNs only with dbglevel > 0 (i.e. when you configure with
--enable-debug or --enable-dbgutil)

> In sal/osl/all/log.cxx:87 getEnvironmentVariable "+WARN" is default
> when std::getenv("SAL_LOG") == 0. Btw in practice probably doesn't
> count but shouldn't these be checks against NULL instead of 0?

http://c-faq.com/null/nullor0.html

I think that's true for C++ as well.

Miklos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20121218/629b779f/attachment.pgp>


More information about the LibreOffice mailing list