You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tubemq.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/06/02 04:40:00 UTC
[jira] [Updated] (TUBEMQ-180) Improvement for BrokerSamplePrint
[ https://issues.apache.org/jira/browse/TUBEMQ-180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated TUBEMQ-180:
----------------------------------
Labels: pull-request-available (was: )
> Improvement for BrokerSamplePrint
> ---------------------------------
>
> Key: TUBEMQ-180
> URL: https://issues.apache.org/jira/browse/TUBEMQ-180
> Project: Apache TubeMQ
> Issue Type: Improvement
> Reporter: Guo Jiwei
> Assignee: Guo Jiwei
> Priority: Normal
> Labels: pull-request-available
>
> 1. BrokerSamplePrint uses the logger transferred from the TubeBroker, actually not necessary. We can create logger in this class.
> 2. Remove the buidler in the log context
> {code:java}
> logger.error(sBuilder
> .append("[heartbeat failed] heartbeat to master exception 2 is ")
> .append(e.toString()).toString());
> logger.error(sBuilder
> .append("[heartbeat failed] heartbeat to master exception 4 is ")
> .append(e.toString()).toString());
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)