SONAR-4898 improve logs on errors