Skip to content

Commit

Permalink
debug log added
Browse files Browse the repository at this point in the history
  • Loading branch information
kaanHapptiq committed Aug 27, 2024
1 parent 26f81df commit ec3188d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ def upload_file(self, file_path: bytes, bucket_name: str, destination: str, con
return f"gs://{bucket_name}/{destination}"

def list_files_with_prefix(self, bucket_name: str, prefix: str):
self.logger.info(f"Listing files in bucket {bucket_name} with prefix {prefix}")
self.logger.debug(f"Files in bucket {bucket_name} with prefix {prefix}")
self.logger.info(f"found {len(file_list)} files in bucket {bucket_name} with prefix {prefix}: {file_list}")
bucket = self.client.bucket(bucket_name)
blobs = bucket.list_blobs(prefix=prefix)

Expand Down

0 comments on commit ec3188d

Please sign in to comment.