~ubuntu-branches/ubuntu/trusty/swift/trusty-updates

« back to all changes in this revision

Viewing changes to swift/common/daemon.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2013-01-28 09:40:30 UTC
  • mfrom: (1.2.16)
  • Revision ID: package-import@ubuntu.com-20130128094030-aetz57x2qz9ye2d4
Tags: 1.7.6-0ubuntu1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
import signal
19
19
from re import sub
20
20
 
 
21
import eventlet.debug
 
22
 
21
23
from swift.common import utils
22
24
 
23
25
 
89
91
    if utils.config_true_value(conf.get('disable_fallocate', 'no')):
90
92
        utils.disable_fallocate()
91
93
 
 
94
    # By default, disable eventlet printing stacktraces
 
95
    eventlet_debug = utils.config_true_value(conf.get('eventlet_debug', 'no'))
 
96
    eventlet.debug.hub_exceptions(eventlet_debug)
 
97
 
92
98
    try:
93
99
        klass(conf).run(once=once, **kwargs)
94
100
    except KeyboardInterrupt: