log errors in production