investigating error logging