Project

General

Profile

« Previous | Next » 

Revision 5095

tnrs_db: Added log messages for Making TNRS request and Storing TNRS response data so that if the TNRS daemon pauses, it's obvious which step it's waiting on

View differences:

tnrs_db
61 61
        total_pause = 0
62 62
        
63 63
        # Run TNRS
64
        log('Making TNRS request')
64 65
        try: stream = tnrs.repeated_tnrs_request(list(sql.values(cur)))
65 66
        except InvalidResponse: pass # skip this set in case it caused the error
66 67
        else:
68
            log('Storing TNRS response data')
67 69
            stream_info = csvs.stream_info(stream, parse_header=True)
68 70
            stream = streams.ProgressInputStream(stream, sys.stderr, n=1000)
69 71
            sql_io.append_csv(db, tnrs_data, stream_info, stream)

Also available in: Unified diff