old_contents: import logging
  import logging.config
  
  
  LOGGING = {
      'version': 1,
      'disable_existing_loggers': True,
      'formatters': {
          'verbose': {
              'format': "[%(asctime)s] %(levelname)s " \
                  "[%(threadName)s:%(lineno)s] %(message)s",
              'datefmt': "%Y-%m-%d %H:%M:%S"
          },
          'simple': {
              'format': '%(levelname)s %(message)s'
          },
      },
      'handlers': {
          'console': {
              'level': 'DEBUG',
              'class': 'logging.StreamHandler',
              'formatter': 'verbose'
          },
          'file': {
              'level': 'DEBUG',
              'class': 'logging.handlers.RotatingFileHandler',
              'formatter': 'verbose',
              'filename': 'rl.log',
              'maxBytes': 10*10**6,
              'backupCount': 3
              }
      },
      'loggers': {
          '': {
              'handlers': ['console', 'file'],
              'level': 'DEBUG',
          },
      }
  }
  
  
  logging.config.dictConfig(LOGGING)
  
  def getLogger(name):
  
      return logging.getLogger(name)
  
new_contents: import os
  import logging
  import logging.config
  
  
  LOG_LEVEL = os.getenv('LOG_LEVEL', 'INFO')
  LOGGING = {
      'version': 1,
      'disable_existing_loggers': True,
      'formatters': {
          'verbose': {
              'format': "[%(asctime)s] %(levelname)s " \
                  "[%(threadName)s:%(lineno)s] %(message)s",
              'datefmt': "%Y-%m-%d %H:%M:%S"
          },
          'simple': {
              'format': '%(levelname)s %(message)s'
          },
      },
      'handlers': {
          'console': {
              'level': LOG_LEVEL,
              'class': 'logging.StreamHandler',
              'formatter': 'verbose'
          },
          'file': {
              'level': LOG_LEVEL,
              'class': 'logging.handlers.RotatingFileHandler',
              'formatter': 'verbose',
              'filename': 'rl.log',
              'maxBytes': 10*10**6,
              'backupCount': 3
              }
      },
      'loggers': {
          '': {
              'handlers': ['console', 'file'],
              'level': LOG_LEVEL,
          },
      }
  }
  
  
  logging.config.dictConfig(LOGGING)
  
  def getLogger(name):
  
      return logging.getLogger(name)
  
subject: fix log level