[tor-bugs] #17701 [metrics-lib]: ExitList descriptor chokes on getUnrecognizedLines()
Tor Bug Tracker & Wiki
blackhole at torproject.org
Mon Nov 30 18:23:21 UTC 2015
#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
More information about the tor-bugs
mailing list