Commit db87bd8b authored by Sergey Anfinogentov's avatar Sergey Anfinogentov

I reduced output of jsoc_get_urls

parent 838394dc
......@@ -65,7 +65,6 @@ function json_decode_byte,jsonb,strmask,level
end
function json_decode,json
;json='{"ab" : [1,2,3,4] ,"bc" : {"st":"sdgs","en":"foo"}}'
print,json
jsonb=byte(json)
levels=jsonb*0
openA=(byte('['))[0]
......
......@@ -34,10 +34,10 @@ Function jsoc_get_urls,query,directory,requestid=requestid,processing=processing
buf=ourl->get(/string)
response=json_decode(strjoin(buf,''))
if (response.status ge 3) and (response.status ne 6) then message,response.error
message,'Answer: '+status[response.status],/info
;message,'Answer: '+status[response.status],/info
if response.status eq 0 then break
delay=10;fix(response.wait)<15>10
message,'waiting '+sstring(delay)+' seconds',/info
message,'remote processing, waiting '+sstring(delay)+' seconds',/info
endfor
OBJ_DESTROY, oUrl
dir=strreplace(response.dir,'\/','/')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment