Fix logger error message with partial callbacks by krishna-holvi · Pull Request #19609 · django/django · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

Fix logger error message with partial callbacks #19609

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

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

Conversation

krishna-holvi
Copy link

@krishna-holvi krishna-holvi commented Jun 30, 2025

Trac ticket number

ticket-36487

Branch description

This is a trivial change to fix the logger error message. Fixed the error message for the case on commit callback is a partial which doesn't have the property __qualname__.

Checklist

  • This PR targets the main branch.
  • The commit message is written in past tense, mentions the ticket number, and ends with a period.
  • I have checked the "Has patch" ticket flag in the Trac system.
  • I have added or updated relevant tests.
  • I have added or updated relevant docs, including release notes if applicable.
  • I have attached screenshots in both light and dark modes for any UI changes.

@github-actions github-actions bot added the no ticket Based on PR title, no linked Trac ticket label Jun 30, 2025
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Hello! Thank you for your contribution 💪

As it's your first contribution be sure to check out the patch review checklist.

If you're fixing a ticket from Trac make sure to set the "Has patch" flag and include a link to this PR in the ticket!

If you have any design or process questions then you can ask in the Django forum.

Welcome aboard ⛵️!

@charettes
Copy link
Member

charettes commented Jun 30, 2025

Hello @krishna-holvi, the problem seems legitimate but just like any non-trivial bug fixing this will require a ticket as well as tests.

See 4a1150b to get an idea for where the tests should be added. It might also be an opportunity to change the logging.error(exc_info=True) calls to logger.exception instead as the latter is an alias for the former.

@krishna-holvi
Copy link
Author

Hello @krishna-holvi, the problem seems legitimate but just like any non-trivial bug fixing this will require a ticket as well as tests.

See 4a1150b to get an idea for where the tests should be added. It might also be an opportunity to change the logging.error(exc_info=True) calls to logger.exception instead as the latter is an alias for the former.

Many thanks for having a look and thank you for those links. I'll update the PR

@krishna-holvi krishna-holvi force-pushed the krishna-fix-logger-partial-error branch from 3426f37 to a8db985 Compare June 30, 2025 15:17
@charettes
Copy link
Member

Looks like it caused a few failures

See

Try running this particular suite locally

@krishna-holvi krishna-holvi force-pushed the krishna-fix-logger-partial-error branch 8 times, most recently from b087dca to 1839277 Compare July 1, 2025 15:31
@krishna-holvi
Copy link
Author

Updated with simplified approach as discussed in ticket. thank you!

@krishna-holvi krishna-holvi force-pushed the krishna-fix-logger-partial-error branch from 1839277 to 2f6bc74 Compare July 1, 2025 15:34
@krishna-holvi krishna-holvi force-pushed the krishna-fix-logger-partial-error branch from 2f6bc74 to 7c6b037 Compare July 1, 2025 17:00
@krishna-holvi
Copy link
Author

@charettes tests are passing now, can you please have a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no ticket Based on PR title, no linked Trac ticket
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.