Files
335 lines
14 KiB
Plaintext
335 lines
14 KiB
Plaintext
Updated to use standard shebang and explicitly flush output; added deprecation warning to stats.conf
#!/usr/bin/env python
#
from time import time
from eventlet.pools import Pool
from swift.common.ring import Ring
def get_error_log(prefix):
def error_log(msg_or_exc):
Updated to use standard shebang and explicitly flush output; added deprecation warning to stats.conf
stderr.flush()
if not hasattr(msg_or_exc, 'http_status') or \
Updated to use standard shebang and explicitly flush output; added deprecation warning to stats.conf
stderr.flush()
return error_log
Updated to use standard shebang and explicitly flush output; added deprecation warning to stats.conf
stderr.flush()
return
begun = time()
def direct(container, part, nodes):
container_parts = {}
Updated to use standard shebang and explicitly flush output; added deprecation warning to stats.conf
stderr.flush()
return
Updated to use standard shebang and explicitly flush output; added deprecation warning to stats.conf
stderr.flush()
return
begun = time()
def direct(obj, part, nodes):
Updated to use standard shebang and explicitly flush output; added deprecation warning to stats.conf
stdout.flush()
object_parts = {}
conffile = '/etc/swift/dispersion.conf'
c = ConfigParser()
account = url.rsplit('/', 1)[1]