[SNMP4J] printStackTrace in Mpv3

Imre Kovács imre.kov at gmail.com
Tue Aug 15 14:36:28 CEST 2006


Hello Frank,



This is just a small notification which I wanted to make earlier, but it is
never too late…



So, in the MPv3.java, at row 996, there is the following:



catch (IOException iox) {

          logger.warn("ASN.1 parse error: "+iox.getMessage());

          iox.printStackTrace();
 ...


I saw, that many places you use the printStackTrace, but only in



if (logger.isDebugEnabled()) {

        iox.printStackTrace();

      }



form.



So, I know, that it makes sense to know that the message cannot be decoded,
but it may not be logged directly to the console with the trace as well.



Best regards,

Imre Kovacs



More information about the SNMP4J mailing list