Skip to content

Commit 6403290

Browse files
authored
feat: Log resource when exception occurs to aid debugging (#172)
This change will allow plugin authors to see the resource that caused the exception, helping them find the underlying cause. To get this level of information, `--log-level debug` needs to be passed to the plugin server (or the CLI, depending on whether or not the plugin is run using the grpc registry) Closes cloudquery/cloudquery#18002
1 parent be29edd commit 6403290

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cloudquery/sdk/scheduler/scheduler.py

+6
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,12 @@ def resolve_table(
116116
depth=depth,
117117
exc_info=e,
118118
)
119+
self._logger.debug(
120+
"details about resource that failed to resolve",
121+
client_id=client.id(),
122+
table=resolver.table.name,
123+
resource=item,
124+
)
119125
continue
120126
res.put(SyncInsertMessage(resource.to_arrow_record()))
121127
for child_resolvers in resolver.child_resolvers:

0 commit comments

Comments
 (0)