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 1010using System . Threading ;
1111
1212using Tangosol . IO ;
13+ using Tangosol . Net . Messaging ;
1314using Tangosol . Run . Xml ;
1415using Tangosol . Util ;
1516using Tangosol . Util . Daemon . QueueProcessor . Service ;
@@ -993,9 +994,18 @@ protected virtual void StartService(Util.IService service)
993994 }
994995 catch ( Exception e )
995996 {
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+
9991009 try
10001010 {
10011011 service . Stop ( ) ;
You can’t perform that action at this time.
0 commit comments