New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
geo-replication: replace logging.warn with logging.warning (#4344) #4345
base: devel
Are you sure you want to change the base?
Conversation
Can one of the admins verify this patch? |
2 similar comments
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
/run regression |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM +1
0 test(s) failed 1 test(s) generated core 1 test(s) needed retry |
@@ -542,7 +542,7 @@ def crawlwrap(self, oneshot=False, register_time=None): | |||
rconf.volume_id = self.uuid | |||
if self.volinfo: | |||
if self.volinfo['retval']: | |||
logging.warn(lf("primary cluster's info may not be valid", | |||
logging.warning(lf("primary cluster's info may not be valid", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Next line is not indented properly
@@ -1169,7 +1169,7 @@ def process_change(self, change, done, retry): | |||
entries.append( | |||
edct(ty, stat=st, entry=en, gfid=gfid, link=rl)) | |||
else: | |||
logging.warn(lf('ignoring op', | |||
logging.warning(lf('ignoring op', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here and check for all the changes.
eb063af
to
55a79a5
Compare
/run regression |
logging.warn is an alias to logging.warning since Python 3.3 and will be removed in Python 3.13.