mirror of
https://git.wownero.com/wownero/tippero.git
synced 2024-08-15 00:33:14 +00:00
Make another JSON reply log on a single line
This commit is contained in:
parent
c096f9d6e3
commit
099981b832
1 changed files with 2 additions and 3 deletions
|
@ -160,13 +160,12 @@ def SendHTMLCommand(host,port,method):
|
|||
http.close()
|
||||
raise
|
||||
response = http.getresponse()
|
||||
log_log('SendHTMLCommand: Received reply status: %s' % response.status)
|
||||
if response.status != 200:
|
||||
log_error('SendHTMLCommand: Error, not 200: %s' % str(response.status))
|
||||
log_error('SendHTMLCommand: Error, received reply status %s' % str(response.status))
|
||||
http.close()
|
||||
raise RuntimeError("Error "+response.status)
|
||||
s = response.read()
|
||||
log_log('SendHTMLCommand: Received reply: %s' % s)
|
||||
log_log('SendHTMLCommand: Received reply status %s: %s' % (response.status,s.replace('\r\n',' ').replace('\n',' ')))
|
||||
try:
|
||||
j = json.loads(s)
|
||||
except Exception,e:
|
||||
|
|
Loading…
Reference in a new issue