Max has uploaded this change for review. ( https://gerrit.osmocom.org/11896


Change subject: ctrl2cgi.py: log address on errors
......................................................................

ctrl2cgi.py: log address on errors

Change-Id: I80cdcda134766c679c2b80b848fb9db853321cfd
Related: SYS#4399
---
M scripts/ctrl2cgi.py
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/python/osmo-python-tests 
refs/changes/96/11896/1

diff --git a/scripts/ctrl2cgi.py b/scripts/ctrl2cgi.py
index 6be36c4..1b5e952 100755
--- a/scripts/ctrl2cgi.py
+++ b/scripts/ctrl2cgi.py
@@ -141,7 +141,7 @@
         params['h'] = gen_hash(params, self.factory.secret_key)
         d = post(self.factory.location, None, params=params)
         d.addCallback(partial(handle_reply, self.transport.write, 
self.factory.log)) # treq's collect helper is handy to get all reply content at 
once using closure on ctx
-        d.addErrback(lambda e, bsc: self.factory.log.critical("HTTP POST error 
%s while trying to register BSC %s" % (e, bsc)), bsc) # handle HTTP errors
+        d.addErrback(lambda e, bsc: self.factory.log.critical("HTTP POST error 
%s while trying to register BSC %s on %s" % (e, bsc, self.factory.location)), 
bsc) # handle HTTP errors
         # Ensure that we run only limited number of requests in parallel:
         yield self.factory.semaphore.acquire()
         yield d # we end up here only if semaphore is available which means 
it's ok to fire the request without exceeding the limit

--
To view, visit https://gerrit.osmocom.org/11896
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: python/osmo-python-tests
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I80cdcda134766c679c2b80b848fb9db853321cfd
Gerrit-Change-Number: 11896
Gerrit-PatchSet: 1
Gerrit-Owner: Max <msur...@sysmocom.de>

Reply via email to