LPS-51131 improve error logging