Steps to reproduce:
- Start 2 bundles of Liferay
- Connect them by remote staging
- Turn off live server
- Go to Control Panel > Publishing > Staging, switch tabs between Processes/Scheduled
No Exception logged
Exception occurs each time the tabs are switched
The proposed fix changes how we would log connection errors for all http services reached by the server. If there's a ConnectException thrown, only a one-liner Connection error + cause will be logged. A debug logging is added for these exceptions too, if stack trace is needed, set logging to debug level for the class which threw the ConnectException.