Log request type in Rails

I want to log the type of request (DDL, DML, etc.) while logging requests in Rails. I have performed query logging by patching ActiveSupport :: LogSubscriber. But failed to get the request type. Can anyone help me with this?

PS I am using Rails 4.

+3
database mysql ruby-on-rails ruby-on-rails-4


source to share


No one has answered this question yet

Check out similar questions:

2568
Should I be using the datetime or timestamp datatype in MySQL?
1339
How can I rename a database column in Ruby on Rails migrations?
941
Understanding Rails Authentication ID
876
Brief explanation of nil v. Empty v. Blank in Ruby on Rails
596
How to use problems in Rails 4
385
Rails I18n validation warning warning
303
Rails: include vs .: join
293
MySQL maximum text length
201
Paperclip :: Errors :: MissingRequiredValidatorError with Rails 4
186
Rails 4 Authenticity



All Articles
Loading...
X
Show
Funny
Dev
Pics