[erlang-questions] Time to change the default for +W?

Richard Carlsson <>
Sat Apr 18 00:15:02 CEST 2015


Since nobody seemed to have an opinion about this, I went ahead and created
a pull request: https://github.com/erlang/otp/pull/685

It turned out that there was already some code implementing the +We option,
but it was broken, and the option was never documented.


        /Richard

On Thu, Apr 16, 2015 at 1:43 PM, Richard Carlsson <
> wrote:

> Isn't it about time that we got three levels of error_logger messages by
> default? Quoting the erl documentation:
> *+W w | i*
>
> Sets the mapping of warning messages for error_logger. Messages sent to
> the error logger using one of the warning routines can be mapped either to
> errors (default), warnings (+W w), or info reports (+W i). The current
> mapping can be retrieved using error_logger:warning_map/0. See
> error_logger(3)
> <http://www.erlang.org/doc/man/error_logger.html#warning_map-0> for
> further information.
>
> I feel that in this day and age, this ought to be changed so that +W w is
> the default, and a new flag "+W e" should be added for those who still want
> the old behaviour.
>         /Richard
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150418/40717910/attachment.html>


More information about the erlang-questions mailing list