[ 
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:
---------------------------------------

[~yuzhih...@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)

Reply via email to