File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 10
10
using System . Threading ;
11
11
12
12
using Tangosol . IO ;
13
+ using Tangosol . Net . Messaging ;
13
14
using Tangosol . Run . Xml ;
14
15
using Tangosol . Util ;
15
16
using Tangosol . Util . Daemon . QueueProcessor . Service ;
@@ -993,9 +994,18 @@ protected virtual void StartService(Util.IService service)
993
994
}
994
995
catch ( Exception e )
995
996
{
996
- CacheFactory . Log ( "Error while starting service \" "
997
- + ServiceName + "\" : " + e ,
998
- CacheFactory . LogLevel . Error ) ;
997
+ string message = "Error while starting service \" " + ServiceName + "\" : " ;
998
+ if ( service is RemoteService && e is ConnectionException )
999
+ {
1000
+ // COH-30321 - skip printing the stack trace as connection failures are common and the stack trace
1001
+ // doesn't provide anything useful
1002
+ CacheFactory . Log ( message + e , CacheFactory . LogLevel . Error ) ;
1003
+ }
1004
+ else
1005
+ {
1006
+ CacheFactory . Log ( message + e . StackTrace , CacheFactory . LogLevel . Error ) ;
1007
+ }
1008
+
999
1009
try
1000
1010
{
1001
1011
service . Stop ( ) ;
You can’t perform that action at this time.
0 commit comments