Skip to content

Comments

fix: add query execution duration as debug msg#639

Merged
burningalchemist merged 1 commit intomasterfrom
debug/query-duration
Nov 14, 2024
Merged

fix: add query execution duration as debug msg#639
burningalchemist merged 1 commit intomasterfrom
debug/query-duration

Conversation

@burningalchemist
Copy link
Owner

@burningalchemist burningalchemist commented Nov 14, 2024

resolves #636

This pull request includes changes to the query.go file to enhance the logging functionality and improve the monitoring of query execution times.

Logging enhancements:

  • query.go: Added the time package to the imports section to facilitate time tracking.
  • query.go: Introduced a debug log to measure and log the execution time of queries if the debug level is enabled in the default logger. This includes capturing the start time before executing the query and logging the duration after the query completes.

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

Successfully merging this pull request may close these issues.

Additional Logs on Verbose

1 participant