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

@@ -124,7 +124,7 @@ class Enumeration(GenericEnumeration):
warnMsg = "unable to retrieve the number of "
warnMsg += "roles for user '%s'" % user
logger.warn(warnMsg)
logger.warning(warnMsg)
continue
infoMsg = "fetching roles for user '%s'" % user
@@ -149,7 +149,7 @@ class Enumeration(GenericEnumeration):
else:
warnMsg = "unable to retrieve the roles "
warnMsg += "for user '%s'" % user
logger.warn(warnMsg)
logger.warning(warnMsg)
retrievedUsers.add(user)