Skip to content

Commit

Permalink
fix: Remove unnecessary logging statements in DeltaLakeCallback
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy-ca committed Sep 9, 2024
1 parent 47ca6a4 commit cf0004a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cryptofeed/backends/deltalake.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,9 @@ async def _write_batch(self, df: pd.DataFrame):
)

# Logging statements just before write_deltalake
sample_size = min(5, len(df)) # Show up to 5 rows
LOG.debug(f"Sample of DataFrame to be written (first {sample_size} rows):")
LOG.debug(df.head(sample_size).to_string())
# sample_size = min(5, len(df)) # Show up to 5 rows
# LOG.debug(f"Sample of DataFrame to be written (first {sample_size} rows):")
# LOG.debug(df.head(sample_size).to_string())
LOG.debug("DataFrame dtypes:")
LOG.debug(df.dtypes.to_string())
LOG.warning(f"Writing batch of {len(df)} records to {self.delta_table_path}")
Expand Down Expand Up @@ -564,4 +564,4 @@ class FillsDeltaLake(DeltaLakeCallback, BackendCallback):
- liquidity: category
- type: category
- account: string (nullable)
"""
"""

0 comments on commit cf0004a

Please sign in to comment.