directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Knecht <fel...@apache.org>
Subject Re: Exception logging inconsistent ?
Date Wed, 03 Mar 2010 09:39:44 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


>> Wouldn't it be more consistent when logging an error instead of a
>> warning when afterwards an exception is thrown?
>>    
> It's not obvious. Sometime, we throw an exception because it's teh way
> to know that something went wrong, but we catch this exception at a
> higher level and go on. Typically, this is what we do when searching
> elements in the schema. The fact that the element is not present is not
> an error, from the server POV, but it is from the user POV. Now, we
> generally log a debug in this case because we don't want the server logs
> to be swamped with errors due to a user trying to get data which does
> not exist.

I see, thanks for explanation. I keep it as is.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkuOLmAACgkQ2lZVCB08qHE3igCdE3Tkv+omeZ4e3Q60ZW8ODD9r
Y10An0lT0XIhyOi5/1XuhcR3heZLRD/g
=Tn/4
-----END PGP SIGNATURE-----

Mime
View raw message