Uploaded image for project: 'Motor'
  1. Motor
  2. MOTOR-15

open_sync() interferes with Tornado's logging config

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 0.2
    • Affects Version/s: 0.1.1
    • Component/s: None
    • None
    • Environment:
      Mac OS X 10.9, motor 0.1.2, tornado 3.1.1

      Because motor start a private iolloop in open_sync, and ioloop.start may reset logging config

      ...
      def start(self):
      if not logging.getLogger().handlers:
      ...
      logging.basicConfig()
      ...

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            twinsant twinsant
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: