Skip to content

Commit

Permalink
refactor: change logging level from debug to info for provenance trac…
Browse files Browse the repository at this point in the history
…king
  • Loading branch information
provos committed Jan 28, 2025
1 parent a0a63b0 commit 33df161
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/planai/provenance.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ def get_prefix_by_type(
return None

def _add_provenance(self, task: Task):
logging.info(
"%s: Adding provenance for %s with %s", self, task.name, task._provenance
)
for prefix in self._generate_prefixes(task):
with self.provenance_lock:
self.provenance[prefix] = self.provenance.get(prefix, 0) + 1
Expand All @@ -202,7 +205,7 @@ def _add_provenance(self, task: Task):
)

def _remove_provenance(self, task: Task, worker: TaskWorker):
logging.debug(
logging.info(
"%s: Removing provenance for %s with %s", self, task.name, task._provenance
)
to_notify = set()
Expand Down

0 comments on commit 33df161

Please sign in to comment.