Remove .printStackTrace

0 votes
asked Aug 16, 2014 in Bug by anonymous
Could you please remove invocations of .printStackTrace from all code?

I use plantuml.jar as library and have a lot of exceptions in logs when everything should be OK (code is wrapped by try-catch construction).

1 Answer

0 votes
answered Aug 17, 2014 by plantuml (298,440 points)
Hello,

Ok, we will have a review on those .printStackTrace.

But could you give us examples of exceptions you have in your logs ?

Thanks,
commented Aug 23, 2014 by anonymous
Sorry for a long answer, I haven't received a notification on email.

I did not save the exception, but it's easy to reproduce and get some exceptions if change format from png to something else (unsupported features).

It isn't a problem to get an exception in my case, but I just want to prevent logging in stdout/stderr.

JFYI: I've just checked. PlantUML version 8003 has 76 invocations of .printStackTrace method.
commented Aug 24, 2014 by plantuml (298,440 points)
No problem for long answer. (However, you are logged as anonymous, that's why you din't get any email notification).

Actually, we are really interested in having the exception. Since you mention that you get it in changing format png to something else, it means that we forget to implement some important feature in the format you are using.

Could you send us your diagram and the format you are using ? It will help us to improve the software.

Thanks again.
...