Skip to content

Commit 21eebd0

Browse files
authored
[DBM][Postgres] Debug log if extension is not in loader map (DataDog#21891)
* Added pg_stat_statement to PG_EXTENSION_LOADER_QUERY * Updated query * Updated code based on discussion with Engineering
1 parent e398152 commit 21eebd0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

postgres/datadog_checks/postgres/metadata.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -812,13 +812,13 @@ def _collect_postgres_settings(self):
812812
if row['schemaname'] in ['pg_catalog', 'public']:
813813
query = PG_EXTENSION_LOADER_QUERY[extension] + "\n" + query
814814
else:
815-
self._log.warning(
815+
self._log.debug(
816816
"unable to collect settings for extension %s in schema %s",
817817
extension,
818818
row['schemaname'],
819819
)
820820
else:
821-
self._log.warning("unable to collect settings for unknown extension %s", extension)
821+
self._log.debug("unable to collect settings for unknown extension %s", extension)
822822

823823
if self.pg_settings_ignored_patterns:
824824
query = query + " WHERE name NOT LIKE ALL(%s)"

0 commit comments

Comments
 (0)