ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Valentin Kulichenko <valentin.kuliche...@gmail.com>
Subject Suppressing "development" warning
Date Mon, 11 Dec 2017 23:28:01 GMT

We have bunch of warnings in the product which are useful only during
development. One of the examples of is "Class ... cannot be serialized
using BinaryMarshaller because it either implements Externalizable ...'
warning - it is very useful when one is writing code as it warns about
possible mistakes and suggest how to fix them, but once implementation is
done, it is meaningless. Moreover, in production environments all warnings
and errors are often automatically monitored, so this introduces an issue
of false positive alerts generated by this kind of warnings.

I see two possible solutions for this:
- Add 'devOnly' flag to IgniteLogger#warning method and ignore them if
special system property is set.
- Introduce special logger category for such warnings so that user can
control if they are logged or not.

I think my vote is for the first option as it's more straightforward and
doesn't require any additional configuration from a user.



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message