Fixing DeprecationWarning (logger.warn)

This commit is contained in:
Miroslav Stampar
2022-06-22 12:04:34 +02:00
parent 90b444c927
commit df4293473d
99 changed files with 429 additions and 428 deletions

View File

@@ -65,7 +65,7 @@ class Custom(object):
elif not isStackingAvailable() and not conf.direct:
warnMsg = "execution of non-query SQL statements is only "
warnMsg += "available when stacked queries are supported"
logger.warn(warnMsg)
logger.warning(warnMsg)
return None
else:
@@ -80,7 +80,7 @@ class Custom(object):
output = NULL
except SqlmapNoneDataException as ex:
logger.warn(ex)
logger.warning(ex)
return output