Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion datadog_sync/utils/resources_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,13 @@ async def _import_resource(self, q_item: List) -> None:
except SkipResource as e:
self.worker.counter.increment_skipped()
await r_class._send_action_metrics(Command.IMPORT.value, _id, Status.SKIPPED.value)
self.config.logger.warning(f"skip importing resource: resource_type:{resource_type} id:{_id}")
self.config.logger.debug(str(e))
except Exception as e:
self.worker.counter.increment_failure()
await r_class._send_action_metrics(Command.IMPORT.value, _id, Status.FAILURE.value)
self.config.logger.error(f"error while importing resource: {str(e)}", resource_type=resource_type)
self.config.logger.error(f"error while importing resource: resource_type:{resource_type} id:{_id}")
self.config.logger.debug(f"error detail: {str(e)}", resource_type=resource_type)

async def _force_missing_dep_import_cb(self, q_item: List):
resource_type, _id = q_item
Expand Down