clearwing

changeset 179:571e9a8228e7 1.2.3-genius

Remove debug logging messages
author Stelios <stv@roe.ac.uk>
date Mon Dec 12 16:46:39 2016 +0200 (2016-12-12)
parents 5e73ee0046d5
children 3dd02b0ef401
files src/freeform_sql/misc.py
line diff
     1.1 --- a/src/freeform_sql/misc.py	Mon Dec 12 16:12:15 2016 +0200
     1.2 +++ b/src/freeform_sql/misc.py	Mon Dec 12 16:46:39 2016 +0200
     1.3 @@ -407,19 +407,18 @@
     1.4          
     1.5          #data = urllib.urlencode({ firethorn_config.query_status_update : "RUNNING", 'adql.query.delay.every' : '10000', 'adql.query.delay.first':'10000', 'adql.query.delay.last':'10000'})
     1.6          request = urllib2.Request(url, data, headers={"Accept" : "application/json", "firethorn.auth.identity" : session.get("email","unknown user"), "firethorn.auth.community" : session.get("community_input","public (unknown)")})
     1.7 -        logging.debug(url)
     1.8 -        logging.debug(data)
     1.9 +
    1.10 +
    1.11          f_update = urllib2.urlopen(request)
    1.12          query_json =  json.loads(f_update.read())
    1.13          query_status = "QUEUED"
    1.14          
    1.15          logging.exception("Query started on Firethorn:")
    1.16 -        logging.exception(url)
    1.17 +
    1.18     
    1.19 -        logging.debug(query_status)
    1.20 +
    1.21          while query_status=="QUEUED" or query_status=="RUNNING" or query_status=="READY" and elapsed_time<MAX_ELAPSED_TIME:
    1.22              query_json = json.loads(get_status(url))
    1.23 -            logging.debug(get_status(url))
    1.24              query_status= query_json["status"] 
    1.25              time.sleep(delay)
    1.26              if elapsed_time>MIN_ELAPSED_TIME_BEFORE_REDUCE and delay<MAX_DELAY: