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

Logger with line number and file name information #22

Open
jnoortheen opened this issue Jan 9, 2018 · 1 comment
Open

Logger with line number and file name information #22

jnoortheen opened this issue Jan 9, 2018 · 1 comment

Comments

@jnoortheen
Copy link

It will be very much easier to optimize the query, if the logged information is able to print the line and filename information. currently the logging format looks like this

[WARNING 2018-01-09 17:52:22,653] notifiers 14381 Potential unnecessary eager load detected on `app.model`

with this it is not easier to find the origin of the problem.

@leorochael
Copy link

It should be possible to implement this with some variant of

import traceback
traceback.print_stack()

Or some other function from the traceback module.

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

No branches or pull requests

2 participants