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

SQL queries are not showing when opening request details #89

Open
AliOsm opened this issue Jul 3, 2024 · 8 comments
Open

SQL queries are not showing when opening request details #89

AliOsm opened this issue Jul 3, 2024 · 8 comments

Comments

@AliOsm
Copy link

AliOsm commented Jul 3, 2024

As shown in the image, I can't see SQL queries details, and I'm pretty sure at least 1 request should be listed, any thought on this?

‏لقطة الشاشة ٢٠٢٤-٠٧-٠٣ في ٢ ١١ ٠١ م

@igorkasyanchuk
Copy link
Owner

@AliOsm the best would be if you can clone repo, connect it in the your app and with binding.pry test see why it's not working

@AliOsm
Copy link
Author

AliOsm commented Jul 3, 2024

The weird thing is in development I can see SQL queries and detailed views rendering times, but in production I can't. I'm saving data for 24 hours, could this be a reason?

@igorkasyanchuk
Copy link
Owner

dont know, try to run locally in prod mode with binding.pry, try to change range of data, not sure what can be the reason

@AliOsm
Copy link
Author

AliOsm commented Jul 23, 2024

I found the reason (hopefully :3). When I set RAILS_LOG_LEVEL to debug, SQL queries start showing in production. Is this required? I can see the extension is tracing SQL payload from the event, but I'm not sure if the event will contain the SQL payload in production without RAILS_LOG_LEVEL set to debug or not.

@igorkasyanchuk
Copy link
Owner

@AliOsm oh I really don't remember, please continue investigation

@AliOsm
Copy link
Author

AliOsm commented Jul 23, 2024

So can you just check if debug logging is enabled in one of your applications that is using the gem in production 😅

@igorkasyanchuk
Copy link
Owner

it's not enabled

@AliOsm
Copy link
Author

AliOsm commented Jul 23, 2024

I think this issue is related to this one:
#31

What is the Rails version you are using in your application?

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