rails_semantic_logger icon indicating copy to clipboard operation
rails_semantic_logger copied to clipboard

Include async:true on async queries

Open jdelStrother opened this issue 1 year ago • 0 comments
trafficstars

Description of changes

WDYT to something like this? It includes async: true in the payload of ActiveRecord logs if the query is async.

For synchronous queries, I've left the payload as-is (rather than adding async: false), on the assumption that 99% of your queries are probably synchronous, but I don't have a strong feeling either way on that.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

jdelStrother avatar Nov 12 '24 14:11 jdelStrother