Slow query seems too ugly and not fancy.
thanhtranna opened this issue · 5 comments
thanhtranna commented
I applied upper-db for my project, and also use Cloudwatch in AWS to support logs. But as you can see the slow query is so ugly and take up many log lines of stack query on AWS.
So can I reduce the number of log lines?
Or it will show all stack by default but if I don't want to show it I can turn it off.
I can create PR for this issue.
Thanks.
![Screenshot 2023-07-09 at 4 58 36 PM](https://private-user-images.githubusercontent.com/23477105/252139174-c58ac174-85f4-42f2-bcb7-9916d8e47451.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDQ4MDQ2NjMsIm5iZiI6MTcwNDgwNDM2MywicGF0aCI6Ii8yMzQ3NzEwNS8yNTIxMzkxNzQtYzU4YWMxNzQtODVmNC00MmYyLWJjYjctOTkxNmQ4ZTQ3NDUxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAxMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMTA5VDEyNDYwM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM5ZjRhMzg5MjY0MGViY2RjY2M2NWQ4ZGNjODhlMTVmMmFjZGUwYTFhYjZlZDkxZDA0OGZiMDk3NTdhYmVjNTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.W0XEiSbOJr0yCPkW8i-FucBHFtzXwSWDLy0Bj5H9Ufw)
dangkaka commented
same issue here
VojtechVitek commented
Have you tried setting your own logger? db.LC().SetLogger()
thanhtranna commented
Hi @VojtechVitek Yes, I have tried it before.
But still have the stack trace. I think the slow query only shows the query enough.
emirkosuta commented
same issue here
thanhtranna commented