log errors separately