pub async fn log_errors( f: impl Send + Future<Output = Result<(), Error>>, message: impl Display, )
Takes a future that returns an error, and transforms it to a future that logs said error