Skip to content
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

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from

Conversation

jelly
Copy link

@jelly jelly commented Apr 28, 2024

logging.warn is an alias to logging.warning since Python 3.3 and will be removed in Python 3.13.

@gluster-ant
Copy link
Collaborator

Can one of the admins verify this patch?

2 similar comments
@gluster-ant
Copy link
Collaborator

Can one of the admins verify this patch?

@gluster-ant
Copy link
Collaborator

Can one of the admins verify this patch?

@mohit84
Copy link
Contributor

mohit84 commented Apr 28, 2024

/run regression

Copy link
Contributor

@mohit84 mohit84 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM +1

@gluster-ant
Copy link
Collaborator

0 test(s) failed

1 test(s) generated core
./tests/bugs/glusterd/mgmt-handshake-and-volume-sync-post-glusterd-restart.t

1 test(s) needed retry
./tests/bugs/bitrot/bug-1245981.t
https://build.gluster.org/job/gh_centos7-regression/3395/

@@ -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",
Copy link
Member

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',
Copy link
Member

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.

)

logging.warn is an alias to logging.warning since Python 3.3 and will be
removed in Python 3.13.
@aravindavk
Copy link
Member

/run regression

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants