Replace deprecated log.warn by log.warning (#15179)
This commit is contained in:
Родитель
f6d8394644
Коммит
c6f13f1970
|
@ -173,8 +173,8 @@ def add_email_to_activity_log(parser):
|
|||
'You don\'t have permission to reply to this add-on. You '
|
||||
'have to be a listed developer currently, or an AMO reviewer.')
|
||||
else:
|
||||
log.warn('%s tried to use an invalid activity email token for '
|
||||
'version %s.', user.email, version.id)
|
||||
log.warning('%s tried to use an invalid activity email token for '
|
||||
'version %s.', user.email, version.id)
|
||||
reason = ('it\'s for an old version of the addon'
|
||||
if not token.is_expired() else
|
||||
'there have been too many replies')
|
||||
|
|
|
@ -33,7 +33,7 @@ class Command(BaseCommand):
|
|||
min_appversion_str = version.compatible_apps[app].min.version
|
||||
max_appversion_str = '%d.*' % version_dict(
|
||||
min_appversion_str)['major']
|
||||
log.warn(
|
||||
log.warning(
|
||||
'Version %s for addon %s min version is %s for %s app, '
|
||||
'max will be changed to %s instead of *',
|
||||
version, version.addon, min_appversion_str, app.pretty,
|
||||
|
|
Загрузка…
Ссылка в новой задаче