~cprov/core-image-publisher/flake8

« back to all changes in this revision

Viewing changes to core_image_publisher/__init__.py

  • Committer: Ubuntu CI Bot
  • Author(s): Thomi Richards
  • Date: 2015-03-30 20:28:34 UTC
  • mfrom: (12.1.10 trunk-upload-to-glance)
  • Revision ID: ubuntu_ci_bot-20150330202834-jwwf5jnulpd28kt6
Add code to push converted images into glance. [r=Celso Providelo]

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
    root_logger = logging.getLogger()
53
53
    root_logger.setLevel(logging.INFO)
54
54
 
 
55
    # glanceclient & keystoneclient use requests, which logs for every
 
56
    # new HTTP connection, so let's make it a little less chatty:
 
57
    logging.getLogger('requests').setLevel(logging.WARNING)
 
58
 
55
59
    # If there is no ./logs directory, fallback to stderr.
56
60
    log_path = os.path.abspath(
57
61
        os.path.join(__file__, '../../logs/core-image-publisher.log'))
91
95
        with connection:
92
96
            monitor = CoreImagePublisherQueueMonitor(
93
97
                connection,
94
 
                worker.logging_worker
 
98
                worker.ImagePublisherWorker(config)
95
99
            )
96
100
            monitor.run()
97
101
    except KeyboardInterrupt: