Fix logger in amazon class