summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2017-05-26 09:51:07 +0200
committerBenoit Foucher <benoit@zeroc.com>2017-05-26 09:51:07 +0200
commitb981629221873b82021738b3960ea21c7928b3a2 (patch)
treeb3d081184b9eadfff2fd67f7f80dd3303fbd93db /js
parentFix (ICE-7921) - Bogus debugger settings with Nuget packages (diff)
downloadice-b981629221873b82021738b3960ea21c7928b3a2.tar.bz2
ice-b981629221873b82021738b3960ea21c7928b3a2.tar.xz
ice-b981629221873b82021738b3960ea21c7928b3a2.zip
Fixed ICE-7922 - Review retry/network tracing
Diffstat (limited to 'js')
-rw-r--r--js/src/Ice/OutgoingConnectionFactory.js8
-rw-r--r--js/src/Ice/Reference.js2
2 files changed, 5 insertions, 5 deletions
diff --git a/js/src/Ice/OutgoingConnectionFactory.js b/js/src/Ice/OutgoingConnectionFactory.js
index a2688c43076..42023c1e91b 100644
--- a/js/src/Ice/OutgoingConnectionFactory.js
+++ b/js/src/Ice/OutgoingConnectionFactory.js
@@ -556,7 +556,7 @@ class OutgoingConnectionFactory
handleConnectionException(ex, hasMore)
{
const traceLevels = this._instance.traceLevels();
- if(traceLevels.retry >= 2)
+ if(traceLevels.network >= 2)
{
const s = [];
s.push("connection to endpoint failed");
@@ -576,14 +576,14 @@ class OutgoingConnectionFactory
}
}
s.push(ex.toString());
- this._instance.initializationData().logger.trace(traceLevels.retryCat, s.join(""));
+ this._instance.initializationData().logger.trace(traceLevels.networkCat, s.join(""));
}
}
handleException(ex, hasMore)
{
const traceLevels = this._instance.traceLevels();
- if(traceLevels.retry >= 2)
+ if(traceLevels.network >= 2)
{
const s = [];
s.push("couldn't resolve endpoint host");
@@ -603,7 +603,7 @@ class OutgoingConnectionFactory
}
}
s.push(ex.toString());
- this._instance.initializationData().logger.trace(traceLevels.retryCat, s.join(""));
+ this._instance.initializationData().logger.trace(traceLevels.networkCat, s.join(""));
}
}
diff --git a/js/src/Ice/Reference.js b/js/src/Ice/Reference.js
index 020fa4665b6..01e981d6421 100644
--- a/js/src/Ice/Reference.js
+++ b/js/src/Ice/Reference.js
@@ -2106,7 +2106,7 @@ class RoutableReference extends Reference
this.getInstance().initializationData().logger.trace(
traceLevels.retryCat,
"connection to cached endpoints failed\n" +
- "removing endpoints from cache and trying one more time\n" +
+ "removing endpoints from cache and trying again\n" +
ex.toString());
}
this.getConnectionNoRouterInfo(p); // Retry.