Sfoglia il codice sorgente

add a bit of logging for status change issues

david 7 anni fa
parent
commit
8dd6d3f1df
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      bookworm/file_fetcher.py

+ 1 - 0
bookworm/file_fetcher.py

@@ -16,6 +16,7 @@ def netcat(filename, ip, port, size, job_key, s3client, redis, meta):
     s.connect((ip, port))
     log.info("Receiving file %s", filename)
 
+    log.info('Setting job %s in key %s to DOWNLOADING', job_key, REDIS.STEP_KEY)
     redis.hset(job_key, REDIS.STEP_KEY, 'DOWNLOADING')
     buff = b''
     count = 0