upper/db

Slow query seems too ugly and not fancy.

thanhtranna opened this issue · 5 comments

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

same issue here

Have you tried setting your own logger? db.LC().SetLogger()

Hi @VojtechVitek Yes, I have tried it before.
But still have the stack trace. I think the slow query only shows the query enough.

same issue here

Thanks @VojtechVitek

I tried with db.LC().SetLevel(db.LogLevelError)

and problem solved.