1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-28 02:36:15 +01:00

Redirect debug output to stderr.

This commit is contained in:
Michal Čihař 2010-08-30 13:06:17 +02:00
parent fdfd4793c0
commit c88d7fc4a3

View File

@ -2090,7 +2090,7 @@ def http_request(method, url, headers={}, data=None, file=None, timeout=100):
else: else:
raise raise
if conf.config['debug']: print method, url if conf.config['debug']: print >>sys.stderr, method, url
old_timeout = socket.getdefaulttimeout() old_timeout = socket.getdefaulttimeout()
# XXX: dirty hack as timeout doesn't work with python-m2crypto # XXX: dirty hack as timeout doesn't work with python-m2crypto