Skip to content

Commit e22e48e

Browse files
ian28223masci
authored andcommitted
fixes AttributeError when running on 6.2.1 (#1617)
AttributeError: 'HTTPCheck' object has no attribute 'debug' AttributeError: 'HTTPCheck' object has no attribute 'warning'
1 parent d8beaf4 commit e22e48e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

http_check/datadog_checks/http_check/http_check.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,11 +254,11 @@ def send_status_down(loginfo, message):
254254
else:
255255
# Log if we're skipping SSL validation for HTTPS URLs
256256
if explicit_validation:
257-
self.debug("Skipping SSL certificate validation for {} based on configuration".format(addr))
257+
self.log.debug("Skipping SSL certificate validation for {} based on configuration".format(addr))
258258

259259
# Emit a warning if disable_ssl_validation is not explicitly set and we're not ignoring warnings
260260
else:
261-
self.warning('Parameter disable_ssl_validation for {} is not explicitly set, '
261+
self.log.warning('Parameter disable_ssl_validation for {} is not explicitly set, '
262262
'defaults to true'.format(addr))
263263

264264

0 commit comments

Comments
 (0)