
import logging

import simpledaemon

class clio_daemon(simpledaemon.Daemon):
    default_conf = 'clio_daemon.conf'
    section = 'clio'

    def run(self):
        import eventlet
        from clio.store import app
        logger = logging.getLogger()
        if logger.handlers:
            [app.logger.addHandler(h) for h in logger.handlers]
        app.logger.setLevel(logger.level)
        eventlet.serve(eventlet.listen((app.config['HOST'], app.config['PORT']), backlog=2048), app)

if __name__ == '__main__':
    clio_daemon().main()



import simpledaemon

class clio_daemon(simpledaemon.Daemon):
    default_conf = 'clio_daemon.conf'
    section = 'clio'

    def run(self):
        import eventlet
        from clio.store import app
        eventlet.serve(eventlet.listen((app.config['HOST'], app.config['PORT']), backlog=2048), app)

if __name__ == '__main__':
    clio_daemon().main()


Revert "output flask logging into simpledaemon's log file."
Revert "output flask logging into simpledaemon's log file."

This is completely superfluous - logging does this already
automatically.

This reverts commit 18091efef351ecddb1d29ee7d01d0a7fb567a7b7.

- 
- import logging
  
  import simpledaemon
  
  class clio_daemon(simpledaemon.Daemon):
      default_conf = 'clio_daemon.conf'
      section = 'clio'
  
      def run(self):
          import eventlet
          from clio.store import app
-         logger = logging.getLogger()
-         if logger.handlers:
-             [app.logger.addHandler(h) for h in logger.handlers]
-         app.logger.setLevel(logger.level)
          eventlet.serve(eventlet.listen((app.config['HOST'], app.config['PORT']), backlog=2048), app)
  
  if __name__ == '__main__':
      clio_daemon().main()
  
  
Revert "output flask logging into simpledaemon's log file."
## Code Before:

import logging

import simpledaemon

class clio_daemon(simpledaemon.Daemon):
    default_conf = 'clio_daemon.conf'
    section = 'clio'

    def run(self):
        import eventlet
        from clio.store import app
        logger = logging.getLogger()
        if logger.handlers:
            [app.logger.addHandler(h) for h in logger.handlers]
        app.logger.setLevel(logger.level)
        eventlet.serve(eventlet.listen((app.config['HOST'], app.config['PORT']), backlog=2048), app)

if __name__ == '__main__':
    clio_daemon().main()


## Instruction:
Revert "output flask logging into simpledaemon's log file."
## Code After:

import simpledaemon

class clio_daemon(simpledaemon.Daemon):
    default_conf = 'clio_daemon.conf'
    section = 'clio'

    def run(self):
        import eventlet
        from clio.store import app
        eventlet.serve(eventlet.listen((app.config['HOST'], app.config['PORT']), backlog=2048), app)

if __name__ == '__main__':
    clio_daemon().main()

