Skip to content

Commit

Permalink
Log get info (#7182)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreYang authored Jul 22, 2020
1 parent d2b02ee commit 25da69a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions aerospike/datadog_checks/aerospike/aerospike.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,13 @@ def get_info(self, command, separator=';'):
# See https://www.aerospike.com/docs/reference/info/
# Example output: command\tKEY=VALUE;KEY=VALUE;...
data = self._client.info_node(command, self._host, self._info_policies)
self.log.debug(
"Get info results for command=`%s`, host=`%s`, policies=`%s`: %s",
command,
self._host,
self._info_policies,
data,
)

# Get rid of command and whitespace
data = data[len(command) :].strip()
Expand Down

0 comments on commit 25da69a

Please sign in to comment.