Improved error conditions logging