[fix] add logging statement for errors