Commit 8681f84f by Jason Song

remove unnessary Tracer.logError

parent c91f6904
...@@ -122,7 +122,6 @@ public class ConfigServiceLocator implements Initializable { ...@@ -122,7 +122,6 @@ public class ConfigServiceLocator implements Initializable {
logConfigServicesToCat(services); logConfigServicesToCat(services);
return; return;
} catch (Throwable ex) { } catch (Throwable ex) {
Tracer.logError(ex);
transaction.setStatus(ex); transaction.setStatus(ex);
exception = ex; exception = ex;
} finally { } finally {
......
...@@ -141,7 +141,6 @@ public class LocalFileConfigRepository extends AbstractConfigRepository ...@@ -141,7 +141,6 @@ public class LocalFileConfigRepository extends AbstractConfigRepository
m_fileProperties = this.loadFromLocalCacheFile(m_baseDir, m_namespace); m_fileProperties = this.loadFromLocalCacheFile(m_baseDir, m_namespace);
transaction.setStatus(Transaction.SUCCESS); transaction.setStatus(Transaction.SUCCESS);
} catch (Throwable ex) { } catch (Throwable ex) {
Tracer.logError(ex);
transaction.setStatus(ex); transaction.setStatus(ex);
exception = ex; exception = ex;
//ignore //ignore
......
...@@ -180,7 +180,6 @@ public class RemoteConfigLongPollService implements Initializable { ...@@ -180,7 +180,6 @@ public class RemoteConfigLongPollService implements Initializable {
transaction.setStatus(Transaction.SUCCESS); transaction.setStatus(Transaction.SUCCESS);
} catch (Throwable ex) { } catch (Throwable ex) {
lastServiceDto = null; lastServiceDto = null;
Tracer.logError(ex);
transaction.setStatus(ex); transaction.setStatus(ex);
long sleepTimeInSecond = m_longPollFailSchedulePolicyInSecond.fail(); long sleepTimeInSecond = m_longPollFailSchedulePolicyInSecond.fail();
logger.warn( logger.warn(
......
...@@ -213,11 +213,9 @@ public class RemoteConfigRepository extends AbstractConfigRepository { ...@@ -213,11 +213,9 @@ public class RemoteConfigRepository extends AbstractConfigRepository {
statusCodeException = new ApolloConfigStatusCodeException(ex.getStatusCode(), statusCodeException = new ApolloConfigStatusCodeException(ex.getStatusCode(),
message); message);
} }
Tracer.logError(statusCodeException);
transaction.setStatus(statusCodeException); transaction.setStatus(statusCodeException);
exception = statusCodeException; exception = statusCodeException;
} catch (Throwable ex) { } catch (Throwable ex) {
Tracer.logError(ex);
transaction.setStatus(ex); transaction.setStatus(ex);
exception = ex; exception = ex;
} finally { } finally {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment