You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@slider.apache.org by "Gour Saha (JIRA)" <ji...@apache.org> on 2017/08/18 22:25:01 UTC
[jira] [Commented] (SLIDER-1237) Remove usages of printStackTrace
[ https://issues.apache.org/jira/browse/SLIDER-1237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16133709#comment-16133709 ]
Gour Saha commented on SLIDER-1237:
-----------------------------------
Few comments -
Instead of calling e.toString() should we just pass e like an object?
SecurityUtils.java
throw new RuntimeException("Error creating certificate password file", e);
LOG.error("Error reading password from existing file", e);
CertificateManager.java
LOG.error("Got interrupted running command " + command + ":", e); // I am not too fond of the +s here either, but the exception stack gets pretty printed to a new line I think
LOG.error("Got IOException running command " + command + ":", e);
LOG.error("Error writing crt req file", e1);
LOG.error("Error reading signed agent certificate", e);
> Remove usages of printStackTrace
> --------------------------------
>
> Key: SLIDER-1237
> URL: https://issues.apache.org/jira/browse/SLIDER-1237
> Project: Slider
> Issue Type: Bug
> Affects Versions: Slider 0.92
> Reporter: Billie Rinaldi
> Assignee: Billie Rinaldi
> Priority: Minor
> Fix For: Slider 1.0.0
>
> Attachments: SLIDER-1237.1.patch
>
>
> We should clean up usages of printStackTrace in favor of better log messages.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)