Skip to content

Commit

Permalink
Never allow RTR related error to abort reporting to log analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
isimluk committed Nov 25, 2022
1 parent 7183a5b commit a50aa6a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fig/backends/azure/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from requests import post
from ...log import log
from ...config import config
from ...falcon.errors import RTRConnectionError


def build_signature(workspace_id, primary_key, date, content_length, method, content_type, resource):
Expand Down Expand Up @@ -74,7 +73,7 @@ def autodiscovery(self):

try:
azure_arc_config = self.event.azure_arc_config()
except RTRConnectionError as e:
except Exception as e:
log.error("Cannot fetch Azure Arc info from host (aid=%s, hostname=%s, last_seen=%s): %s",
self.event.original_event.sensor_id,
self.event.device_details['hostname'],
Expand Down

0 comments on commit a50aa6a

Please sign in to comment.