Skip to content

Instantly share code, notes, and snippets.

@dwins
Created December 21, 2010 20:13
Show Gist options
  • Save dwins/750503 to your computer and use it in GitHub Desktop.
Save dwins/750503 to your computer and use it in GitHub Desktop.
diff --git a/src/geoserver/catalog.py b/src/geoserver/catalog.py
index 8f5331e..4f0a2e5 100644
--- a/src/geoserver/catalog.py
+++ b/src/geoserver/catalog.py
@@ -56,6 +56,12 @@ class Catalog(object):
None,
self.http
))
+ orig_req = self.http.request
+ def wrapped_request(*args, **kwargs):
+ print 'REQUEST', args, kwargs, 'END REQUEST'
+ return orig_req(*args, **kwargs)
+ self.http.request = wrapped_request
+
self._cache = dict()
def add(self, object):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment