Pass a logger to the failed promise handler