old_contents: # -*- coding: utf-8 -*-
  from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  
  import os
  import logging
  from logging.handlers import SysLogHandler
  from dotenv import load_dotenv
  load_dotenv('.env')
  
  
  # Spiders
  
  SPIDER_MODULES = [
      'collectors.actrn.spider',
      'collectors.euctr.spider',
      'collectors.gsk.spider',
      'collectors.ictrp.spider',
      'collectors.isrctn.spider',
      'collectors.jprn.spider',
      'collectors.nct.spider',
      'collectors.pfizer.spider',
      'collectors.pubmed.spider',
      'collectors.takeda.spider',
  ]
  
  # Network
  
  DOWNLOAD_DELAY = float(os.getenv('DOWNLOAD_DELAY', 1))
  AUTOTHROTTLE_ENABLED = True
  
  # Pipelines
  
  WAREHOUSE_URL = os.environ['WAREHOUSE_URL']
  ITEM_PIPELINES = {
      'collectors.base.pipelines.Warehouse': 100,
  }
  
  # Logging
  
  LOGGING_URL = os.environ['LOGGING_URL']
  logging.basicConfig(level=logging.DEBUG)
  root_logger = logging.getLogger()
  host, port = LOGGING_URL.split(':')
  syslog_handler = SysLogHandler(address=(host, int(port)))
  syslog_handler.setLevel(logging.INFO)
  root_logger.addHandler(syslog_handler)
  
new_contents: # -*- coding: utf-8 -*-
  from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  
  import os
  import logging
  from logging.handlers import SysLogHandler
  from dotenv import load_dotenv
  load_dotenv('.env')
  
  
  # Spiders
  
  SPIDER_MODULES = [
      'collectors.actrn.spider',
      'collectors.euctr.spider',
      'collectors.gsk.spider',
      'collectors.ictrp.spider',
      'collectors.isrctn.spider',
      'collectors.jprn.spider',
      'collectors.nct.spider',
      'collectors.pfizer.spider',
      'collectors.pubmed.spider',
      'collectors.takeda.spider',
  ]
  
  # Network
  
  DOWNLOAD_DELAY = float(os.getenv('DOWNLOAD_DELAY', 1))
  AUTOTHROTTLE_ENABLED = True
  
  # Pipelines
  
  WAREHOUSE_URL = os.environ['WAREHOUSE_URL']
  ITEM_PIPELINES = {
      'collectors.base.pipelines.Warehouse': 100,
  }
  
  # Logging
  
  logging.basicConfig(level=logging.DEBUG)
  if 'LOGGING_URL' in os.environ:
      root_logger = logging.getLogger()
      host, port = os.environ['LOGGING_URL'].split(':')
      syslog_handler = SysLogHandler(address=(host, int(port)))
      syslog_handler.setLevel(logging.INFO)
      root_logger.addHandler(syslog_handler)
  
subject: make logging url optional env var