[e-lang] Questions: Close network connections, display command line from app, etrace

Mark S. Miller markm at cs.jhu.edu
Wed Jan 24 10:44:33 CST 2007


Martin Scheffler wrote:
> Hello,
> 
> I got my rune command line and the etrace=>sterr stuff working, yay!


Glad to hear it!


> About the killConnection warning:
> I knew about reactToLostClient and I used it already. I just wondered
> why I still got those trace messages. I searched through the E src and
> found the origin of the trace is in
> net.captp.jcomm.CapTPConnection.java.
> As far as I understand this trace is made on every disconnect, with
> "warning" level. So this is not an error in my program but just
> default behaviour.


Your analysis is correct. The relevant piece of code, in 
src/jsrc/net/captp/jcomm/CapTPConnection.java, is

             //at warning level because lost connections should be traced by
             //default.
             if (Trace.captp.warning && Trace.ON) {
                 Trace.captp.warningm("lost " + this, problem);
             }

The comment records that I thought this was a good idea at the time, but I now 
agree that that's not appropriate. I'll reduce it to a level that's not traced 
by default. Thanks for reporting this!

-- 
Text by me above is hereby placed in the public domain

     Cheers,
     --MarkM


More information about the e-lang mailing list