error_logger unexpected behaviour & a patch to fix it

Matthias Lang matthias@REDACTED
Tue Aug 13 10:00:23 CEST 2002


Hi,

If 

   error_logger:tty(true)

is called when tty logging is already enabled, the error logger
repeats itself on the tty repeats itself on the tty. Example:

   3> error_logger:tty(true).
   ok
   4> error_logger:info_report("sometimes I can't trust my ears").
   
   =INFO REPORT==== 13-Aug-2002::09:42:25 ===
   sometimes I can't trust my ears
   
   =INFO REPORT==== 13-Aug-2002::09:42:25 ===
   sometimes I can't trust my eyes

This happens on R8B-1 and the source hasn't changed in R8B-2. Trivial
patch attached.

Matt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: error_logger_patch
Type: application/octet-stream
Size: 286 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20020813/873e389a/attachment.obj>


More information about the erlang-questions mailing list