log errors on console