log errors to cube