[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #17701 [metrics-lib]: ExitList descriptor chokes on getUnrecognizedLines()
#17701: ExitList descriptor chokes on getUnrecognizedLines()
-------------------------+-------------------------
Reporter: tomlurge | Owner: karsten
Type: defect | Status: new
Priority: Medium | Milestone:
Component: metrics-lib | Version:
Severity: Normal | Resolution:
Keywords: | Actual Points:
Parent ID: | Points:
Sponsor: |
-------------------------+-------------------------
Comment (by iwakeh):
Replying to [comment:11 tomlurge]:
> I added the getException() method in ConvertToJson (line 103 ff) like
this:
>
> {{{
> // tordnsel
> if (descriptor instanceof ExitList) {
> jsonDescriptor = JsonExitList.convert((ExitList) descriptor);
> System.out.print(descriptorFile.getException());
> }
> }}}
Rather to System.err if there is an exception:
{{{
if (descriptor instanceof ExitList) {
jsonDescriptor = JsonExitList.convert((ExitList) descriptor);
if(null != descriptorFile.getException()){
System.err.print(descriptorFile.getException());
}
}
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/17701#comment:13>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs