Skip to content

Commit

Permalink
Log operation IDs used from the legacy Uber class. Closes #1057.
Browse files Browse the repository at this point in the history
  • Loading branch information
jshcodes committed Oct 24, 2023
1 parent 7435d9d commit 75dc563
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/falconpy/api_complete/_legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,9 @@ def command(self: object, *args, **kwargs) -> dict or bytes:
# Which HTTP method to execute
selected_method = uber_command[0][1].upper()
selected_operation = uber_command[0][0]
# Log the operation we're performing if enabled.
if self.log:
self.log.debug("OPERATION: %s", selected_operation)
# Only accept allowed HTTP methods
if selected_method in _ALLOWED_METHODS:
returned = perform_request(method=selected_method,
Expand All @@ -381,7 +384,9 @@ def command(self: object, *args, **kwargs) -> dict or bytes:
params=args_to_params(kwargs.get("parameters", {}),
kwargs,
self.commands,
selected_operation
selected_operation,
self.log,
self.pythonic
),
headers=self._create_header_payload(kwargs),
files=kwargs.get("files",
Expand Down

0 comments on commit 75dc563

Please sign in to comment.