rails_semantic_logger
rails_semantic_logger copied to clipboard
Include async:true on async queries
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.