You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Subrat Mishra (JIRA)" <ji...@apache.org> on 2018/08/13 06:28:00 UTC
[jira] [Commented] (HBASE-21040) printStackTrace() is used in
RestoreDriver in case Exception is caught
[ https://issues.apache.org/jira/browse/HBASE-21040?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16577876#comment-16577876 ]
Subrat Mishra commented on HBASE-21040:
---------------------------------------
[~yuzhihong@gmail.com],
Is it fine to replace "e.printStackTrace();" with below Logger instance:
{code:java}
LOG.error("Error while running restore backup", e);{code}
> printStackTrace() is used in RestoreDriver in case Exception is caught
> ----------------------------------------------------------------------
>
> Key: HBASE-21040
> URL: https://issues.apache.org/jira/browse/HBASE-21040
> Project: HBase
> Issue Type: Bug
> Reporter: Ted Yu
> Priority: Minor
>
> Here is related code:
> {code}
> } catch (Exception e) {
> e.printStackTrace();
> {code}
> The correct way of logging stack trace is to use the Logger instance.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)