mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-27 08:38:54 +02:00
these two debug prints in osc/othermethods.py may be helpful sometimes (although the code is planned te be rewritten anyway)
This commit is contained in:
@@ -44,6 +44,7 @@ def request(method, url, username, password, file=None, strbuf=None):
|
|||||||
conn = httplib.HTTP(host)
|
conn = httplib.HTTP(host)
|
||||||
else:
|
else:
|
||||||
sys.exit('unknown scheme %s' % scheme)
|
sys.exit('unknown scheme %s' % scheme)
|
||||||
|
#conn.set_debuglevel(10)
|
||||||
|
|
||||||
# Headers
|
# Headers
|
||||||
conn.putrequest(method, '%s' % path)
|
conn.putrequest(method, '%s' % path)
|
||||||
@@ -85,6 +86,7 @@ def request(method, url, username, password, file=None, strbuf=None):
|
|||||||
print >>sys.stderr, 'reply:', reply
|
print >>sys.stderr, 'reply:', reply
|
||||||
print >>sys.stderr, '\nDebugging output follows.\nurl:\n%s\nheaders:\n%s\nresponse:\n%s' % (url, headers, msg)
|
print >>sys.stderr, '\nDebugging output follows.\nurl:\n%s\nheaders:\n%s\nresponse:\n%s' % (url, headers, msg)
|
||||||
|
|
||||||
|
#print ''.join(conn.file.read())
|
||||||
|
|
||||||
|
|
||||||
def delfile(url, file, username, password):
|
def delfile(url, file, username, password):
|
||||||
|
Reference in New Issue
Block a user