提交 66c20025 编写于 作者: 张乐 提交者: GitHub

Merge pull request #495 from nobodyiam/optimize-client-logerror

remove unnessary Tracer.logError
......@@ -122,7 +122,6 @@ public class ConfigServiceLocator implements Initializable {
logConfigServicesToCat(services);
return;
} catch (Throwable ex) {
Tracer.logError(ex);
transaction.setStatus(ex);
exception = ex;
} finally {
......
......@@ -141,7 +141,6 @@ public class LocalFileConfigRepository extends AbstractConfigRepository
m_fileProperties = this.loadFromLocalCacheFile(m_baseDir, m_namespace);
transaction.setStatus(Transaction.SUCCESS);
} catch (Throwable ex) {
Tracer.logError(ex);
transaction.setStatus(ex);
exception = ex;
//ignore
......
......@@ -180,7 +180,6 @@ public class RemoteConfigLongPollService implements Initializable {
transaction.setStatus(Transaction.SUCCESS);
} catch (Throwable ex) {
lastServiceDto = null;
Tracer.logError(ex);
transaction.setStatus(ex);
long sleepTimeInSecond = m_longPollFailSchedulePolicyInSecond.fail();
logger.warn(
......
......@@ -213,11 +213,9 @@ public class RemoteConfigRepository extends AbstractConfigRepository {
statusCodeException = new ApolloConfigStatusCodeException(ex.getStatusCode(),
message);
}
Tracer.logError(statusCodeException);
transaction.setStatus(statusCodeException);
exception = statusCodeException;
} catch (Throwable ex) {
Tracer.logError(ex);
transaction.setStatus(ex);
exception = ex;
} finally {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册