old_contents: import ssl
  import logging
  from logging.handlers import SysLogHandler
  from threading import Timer
  
  logger = logging.getLogger('pixelated.startup')
  
  
  def init_logging(name, level=logging.INFO, config_file=None):
      global logger
      logger_name = 'pixelated.%s' % name
  
      logging.basicConfig(level=level)
      if config_file:
          logging.config.fileConfig(config_file)
      else:
          formatter = logging.Formatter('%(asctime)s %(name)s: %(levelname)s %(message)s', '%b %e %H:%M:%S')
          syslog = SysLogHandler(address='/dev/log', facility=SysLogHandler.LOG_DAEMON)
          syslog.setFormatter(formatter)
          logger.addHandler(syslog)
  
      logger.name = logger_name
      logger.info('Initialized logging')
  
  
  def latest_available_ssl_version():
      return ssl.PROTOCOL_TLSv1
  
  
  class Watchdog:
      def __init__(self, timeout, userHandler=None, args=[]):
          self.timeout = timeout
          self.handler = userHandler if userHandler is not None else self.defaultHandler
          self.timer = Timer(self.timeout, self.handler, args=args)
          self.timer.daemon = True
          self.timer.start()
  
      def reset(self):
          self.timer.cancel()
          self.timer = Timer(self.timeout, self.handler)
  
      def stop(self):
          self.timer.cancel()
  
      def defaultHandler(self):
          raise self
  
new_contents: import ssl
  import logging
  from logging.handlers import SysLogHandler
  from threading import Timer
  
  logger = logging.getLogger('pixelated.startup')
  
  
  def init_logging(name, level=logging.INFO, config_file=None):
      global logger
      logger_name = 'pixelated.%s' % name
  
      logging.basicConfig(level=level)
      if config_file:
          logging.config.fileConfig(config_file)
      else:
          formatter = logging.Formatter('%(asctime)s %(name)s: %(levelname)s %(message)s', '%b %e %H:%M:%S')
          syslog = SysLogHandler(address='/dev/log', facility=SysLogHandler.LOG_DAEMON)
          syslog.setFormatter(formatter)
          logger.addHandler(syslog)
  
      logger.name = logger_name
      logger.info('Initialized logging')
  
  
  def latest_available_ssl_version():
      try:
          return ssl.PROTOCOL_TLSv1_2
      except AttributeError:
          return ssl.PROTOCOL_TLSv1
  
  
  class Watchdog:
      def __init__(self, timeout, userHandler=None, args=[]):
          self.timeout = timeout
          self.handler = userHandler if userHandler is not None else self.defaultHandler
          self.timer = Timer(self.timeout, self.handler, args=args)
          self.timer.daemon = True
          self.timer.start()
  
      def reset(self):
          self.timer.cancel()
          self.timer = Timer(self.timeout, self.handler)
  
      def stop(self):
          self.timer.cancel()
  
      def defaultHandler(self):
          raise self
  
subject: Revert "Downgraded SSL version to TLS 1 until we have the requests library fixed"