Skip to content

Commit 8d09ddd

Browse files
committed
fixed logger object not showing
1 parent f7354e0 commit 8d09ddd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/webapp/databricks.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,7 @@ def fetch_table_data(
407407

408408
next_idx = getattr(chunk, "next_chunk_index", None)
409409

410+
print("Fetched %d rows from table: %s", len(rows), fully_qualified_table)
410411
LOGGER.info("Fetched %d rows from table: %s", len(rows), fully_qualified_table)
411412

412413
# Build list of dicts
@@ -421,6 +422,8 @@ def fetch_table_data(
421422
raise ValueError(f"Failed to serialize records to JSON: {e}")
422423

423424
payload_bytes = len(encoded)
425+
print("Final JSON payload size: %.2f MiB (%d bytes)", payload_bytes / (1024 * 1024), payload_bytes,
426+
)
424427
LOGGER.info(
425428
"Final JSON payload size: %.2f MiB (%d bytes)",
426429
payload_bytes / (1024 * 1024),

0 commit comments

Comments
 (0)