Skip to content

Instantly share code, notes, and snippets.

@pkit
Created May 1, 2014 13:58
Show Gist options
  • Save pkit/8afb7dcd59e639f1cd32 to your computer and use it in GitHub Desktop.
Save pkit/8afb7dcd59e639f1cd32 to your computer and use it in GitHub Desktop.
diff --git a/swift/account/server.py b/swift/account/server.py
index 919b51b..8f83e0b 100644
--- a/swift/account/server.py
+++ b/swift/account/server.py
@@ -44,6 +44,7 @@ class AccountController(object):
"""WSGI controller for the account server."""
def __init__(self, conf, logger=None):
+ self.conf = conf
self.logger = logger or get_logger(conf, log_route='account-server')
self.log_requests = config_true_value(conf.get('log_requests', 'true'))
self.root = conf.get('devices', '/srv/node')
diff --git a/swift/container/server.py b/swift/container/server.py
index 784ee7f..6afe9e4 100644
--- a/swift/container/server.py
+++ b/swift/container/server.py
@@ -52,6 +52,7 @@ class ContainerController(object):
'x-container-sync-key', 'x-container-sync-to']
def __init__(self, conf, logger=None):
+ self.conf = conf
self.logger = logger or get_logger(conf, log_route='container-server')
self.log_requests = config_true_value(conf.get('log_requests', 'true'))
self.root = conf.get('devices', '/srv/node')
diff --git a/swift/obj/server.py b/swift/obj/server.py
index 49d33ca..ec27de2 100644
--- a/swift/obj/server.py
+++ b/swift/obj/server.py
@@ -58,6 +58,7 @@ class ObjectController(object):
<source-dir>/etc/object-server.conf-sample or
/etc/swift/object-server.conf-sample.
"""
+ self.conf = conf
self.logger = logger or get_logger(conf, log_route='object-server')
self.node_timeout = int(conf.get('node_timeout', 3))
self.conn_timeout = float(conf.get('conn_timeout', 0.5))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment