diff options
author | Rob Austein <sra@hactrn.net> | 2011-04-27 04:34:52 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2011-04-27 04:34:52 +0000 |
commit | 744ec2cb899c6237d70c1126dc4295f86f69ca73 (patch) | |
tree | 812738b96bbb62acad324411e26c9989eb478a24 /rpkid/rpki/pubd.py | |
parent | 927c896cfb35ceefbfb476a7681a9dade6509b81 (diff) |
First whack at some of the silliest logging code
svn path=/rpkid/rpki/async.py; revision=3793
Diffstat (limited to 'rpkid/rpki/pubd.py')
-rw-r--r-- | rpkid/rpki/pubd.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/rpkid/rpki/pubd.py b/rpkid/rpki/pubd.py index 0fd4b713..513c1c3e 100644 --- a/rpkid/rpki/pubd.py +++ b/rpkid/rpki/pubd.py @@ -123,8 +123,8 @@ class main(object): Process one PDU from the IRBE. """ - def done(x): - cb(200, x) + def done(body): + cb(200, body = body) rpki.log.trace() try: @@ -134,7 +134,7 @@ class main(object): raise except Exception, data: rpki.log.traceback() - cb(500, "Unhandled exception %s" % data) + cb(500, reason = "Unhandled exception %s" % data) client_url_regexp = re.compile("/client/([-A-Z0-9_/]+)$", re.I) @@ -143,8 +143,8 @@ class main(object): Process one PDU from a client. """ - def done(x): - cb(200, x) + def done(body): + cb(200, body = body) rpki.log.trace() try: @@ -164,4 +164,4 @@ class main(object): raise except Exception, data: rpki.log.traceback() - cb(500, "Could not process PDU: %s" % data) + cb(500, reason = "Could not process PDU: %s" % data) |