Replacing print self.arguments statements with logging.