Fix push failure by using the correct method to get logger.