fix logging issue
This commit is contained in:
parent
9dad5dbbcf
commit
6b75ef22c9
@ -62,7 +62,7 @@ def process_request(request_message):
|
|||||||
classifications_cv = []
|
classifications_cv = []
|
||||||
|
|
||||||
result = {**request_message, "data": classifications, "dataCV": classifications_cv}
|
result = {**request_message, "data": classifications, "dataCV": classifications_cv}
|
||||||
logger.info("predictions ready for file_id=%s, and daossier_id=%s", target_file_name, file_id, dossier_id)
|
logger.info("predictions ready for file_id=%s, and daossier_id=%s", file_id, dossier_id)
|
||||||
storage_bytes = gzip.compress(json.dumps(result).encode("utf-8"))
|
storage_bytes = gzip.compress(json.dumps(result).encode("utf-8"))
|
||||||
storage.put_object(bucket, response_file_name, storage_bytes)
|
storage.put_object(bucket, response_file_name, storage_bytes)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user