Skip to content

Commit 3d33bd9

Browse files
committed
better logging
1 parent 3f78d3e commit 3d33bd9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

impl/utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,11 @@ def read_objects(astradb: CassandraClient, target_class: Type[BaseModel], table_
160160
raise e
161161
msg = f"read_objects failed {e} for table {table_name}"
162162
if obj is not None:
163-
msg += f"for object {obj}"
163+
msg += f" last object: {obj}"
164+
if json_objs is not None:
165+
msg += f" json_objs: {json_objs}"
164166
logger.error(msg)
167+
logger.error(traceback.format_exc())
165168
raise HTTPException(status_code=500, detail=f"Error reading {table_name}: {e}")
166169

167170

0 commit comments

Comments
 (0)