def handle(self, *args, **options):
     verbosity = options.get('verbosity')
     if verbosity == 0:
         utils_logger.setLevel(logging.WARN)
         logger.setLevel(logging.WARN)
     elif verbosity == 1:  # default
         utils_logger.setLevel(logging.INFO)
         logger.setLevel(logging.INFO)
     elif verbosity > 1:
         utils_logger.setLevel(logging.DEBUG)
         logger.setLevel(logging.DEBUG)
     if verbosity > 2:
         utils_logger.setLevel(logging.DEBUG)
         logger.setLevel(logging.DEBUG)
     self.refresh_characters(options['limit'], options['staleness'])
 def handle(self, *args, **options):
     verbosity = options.get('verbosity')
     if verbosity == 0:
         utils_logger.setLevel(logging.WARN)
         logger.setLevel(logging.WARN)
     elif verbosity == 1:  # default
         utils_logger.setLevel(logging.INFO)
         logger.setLevel(logging.INFO)
     elif verbosity > 1:
         utils_logger.setLevel(logging.DEBUG)
         logger.setLevel(logging.DEBUG)
     if verbosity > 2:
         utils_logger.setLevel(logging.DEBUG)
         logger.setLevel(logging.DEBUG)
     self.refresh_characters(options['limit'], options['staleness'])
Beispiel #3
0
 def handle(self, *args, **options):
     verbosity = options.get('verbosity')
     if verbosity == 0:
         utils_logger.setLevel(logging.WARN)
         logger.setLevel(logging.WARN)
     elif verbosity == 1:  # default
         utils_logger.setLevel(logging.INFO)
         logger.setLevel(logging.INFO)
     elif verbosity > 1:
         utils_logger.setLevel(logging.DEBUG)
         logger.setLevel(logging.DEBUG)
     if verbosity > 2:
         utils_logger.setLevel(logging.DEBUG)
         logger.setLevel(logging.DEBUG)
     scrape_eveo(range(options['start'], options['start'] + options['pages']))