Skip to content

Commit

Permalink
feat: has_data logger (#712)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Apr 9, 2024
1 parent 21e9979 commit c232ab2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yearn/helpers/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from yearn.sentry import log_exceptions

logger = logging.getLogger(__name__)
has_data_logger = logging.getLogger(f"{__name__}.has_data")

SHOW_STATS = bool(os.environ.get("SHOW_STATS"))

Expand Down Expand Up @@ -149,7 +150,7 @@ async def _has_data(self, snapshot: datetime) -> bool:
ts = snapshot.timestamp()
response = await has_data(ts, self.data_query)
if response:
logger.info(f"data already present for {self.full_name} snapshot {snapshot}, ts {ts}")
has_data_logger.info(f"data already present for {self.full_name} snapshot {snapshot}, ts {ts}")
return bool(response)

async def _export_data(self, data: T) -> None:
Expand Down

0 comments on commit c232ab2

Please sign in to comment.