Skip to content

Commit

Permalink
feat: Log resource when exception occurs to aid debugging (#172)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
hermanschaaf committed May 17, 2024
1 parent be29edd commit 6403290
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cloudquery/sdk/scheduler/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ def resolve_table(
depth=depth,
exc_info=e,
)
self._logger.debug(
"details about resource that failed to resolve",
client_id=client.id(),
table=resolver.table.name,
resource=item,
)
continue
res.put(SyncInsertMessage(resource.to_arrow_record()))
for child_resolvers in resolver.child_resolvers:
Expand Down

0 comments on commit 6403290

Please sign in to comment.