@@ -118,7 +118,7 @@ def list_s3_objects():
118118 break
119119 except Exception :
120120 current_app .logger .exception (
121- "An error occurred while regenerating cache #notify-admin-1200" ,
121+ "An error occurred while regenerating cache #notify-debug- admin-1200" ,
122122 )
123123
124124
@@ -200,7 +200,7 @@ def read_s3_file(bucket_name, object_key, s3res):
200200
201201 except LookupError :
202202 # perhaps our key is not formatted as we expected. If so skip it.
203- current_app .logger .exception ("LookupError #notify-admin-1200" )
203+ current_app .logger .exception ("LookupError #notify-debug- admin-1200" )
204204
205205
206206def get_s3_files ():
@@ -213,7 +213,7 @@ def get_s3_files():
213213
214214 s3res = get_s3_resource ()
215215 current_app .logger .info (
216- f"job_cache length before regen: { len_job_cache ()} #notify-admin-1200"
216+ f"job_cache length before regen: { len_job_cache ()} #notify-debug- admin-1200"
217217 )
218218 try :
219219 with ThreadPoolExecutor () as executor :
@@ -222,7 +222,7 @@ def get_s3_files():
222222 current_app .logger .exception ("Connection pool issue" )
223223
224224 current_app .logger .info (
225- f"job_cache length after regen: { len_job_cache ()} #notify-admin-1200"
225+ f"job_cache length after regen: { len_job_cache ()} #notify-debug- admin-1200"
226226 )
227227
228228
@@ -290,7 +290,7 @@ def file_exists(file_location):
290290
291291def get_job_location (service_id , job_id ):
292292 current_app .logger .debug (
293- f"#s3-partitioning NEW JOB_LOCATION: { NEW_FILE_LOCATION_STRUCTURE .format (service_id , job_id )} "
293+ f"#notify-debug- s3-partitioning NEW JOB_LOCATION: { NEW_FILE_LOCATION_STRUCTURE .format (service_id , job_id )} "
294294 )
295295 return (
296296 current_app .config ["CSV_UPLOAD_BUCKET" ]["bucket" ],
@@ -308,7 +308,7 @@ def get_old_job_location(service_id, job_id):
308308 Remove this when everything works with the NEW_FILE_LOCATION_STRUCTURE.
309309 """
310310 current_app .logger .debug (
311- f"#s3-partitioning OLD JOB LOCATION: { FILE_LOCATION_STRUCTURE .format (service_id , job_id )} "
311+ f"#notify-debug- s3-partitioning OLD JOB LOCATION: { FILE_LOCATION_STRUCTURE .format (service_id , job_id )} "
312312 )
313313 return (
314314 current_app .config ["CSV_UPLOAD_BUCKET" ]["bucket" ],
@@ -507,7 +507,7 @@ def get_personalisation_from_s3(service_id, job_id, job_row_number):
507507
508508def get_job_metadata_from_s3 (service_id , job_id ):
509509 current_app .logger .debug (
510- f"#s3-partitioning CALLING GET_JOB_METADATA with { service_id } , { job_id } "
510+ f"#notify-debug- s3-partitioning CALLING GET_JOB_METADATA with { service_id } , { job_id } "
511511 )
512512 obj = get_s3_object (* get_job_location (service_id , job_id ))
513513 return obj .get ()["Metadata" ]
0 commit comments