fix for #33 logging error without exception doesn't work with Errbit