Skip to content

Commit

Permalink
Remove unnecessary tag log (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanghua authored Oct 19, 2024
1 parent 0d07616 commit b130419
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tosfs/tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,6 @@ def add_bucket_tag(self, bucket: str) -> None:
"""Add tag for bucket."""
from tosfs.core import logger

logger.debug(f"Trigger add_bucket_tag: {bucket}")
collect_bucket_set = {bucket}

if not collect_bucket_set - self.cached_bucket_set:
Expand All @@ -255,13 +254,13 @@ def add_bucket_tag(self, bucket: str) -> None:
from tosfs.core import logger

logger.debug(
f"Marked tagged buckets in the file are: "
f"Marked tagged buckets in the file : "
f"{tagged_bucket_from_file_set}"
)
self.cached_bucket_set |= tagged_bucket_from_file_set

need_tag_buckets = collect_bucket_set - self.cached_bucket_set
logger.debug(f"Need to tag buckets are: {need_tag_buckets}")
logger.debug(f"Need to tag buckets : {need_tag_buckets}")

for res in self.executor.map(
self.bucket_tag_service.put_bucket_tag, need_tag_buckets
Expand Down

0 comments on commit b130419

Please sign in to comment.