old_contents: import os
  import logging
  
  import annotateit
  
  def _configure_logger(app):
      admins = app.config.get('ADMINS')
  
      if admins and not app.debug:
          handler = logging.handlers.SMTPHandler('127.0.0.1',
                                                 'server-error@no-reply.com',
                                                 admins,
                                                 'Annotator error')
          handler.setLevel(logging.ERROR)
          app.logger.addHandler(handler)
  
  if __name__ == '__main__':
      app = annotateit.create_app()
      app.run()
  
new_contents: import annotateit
  
  if __name__ == '__main__':
      app = annotateit.create_app()
      app.run()
  
subject: Remove logging configuration from run.py