Feature #13558

include req_id in rails SQL debug logging

Added by Joshua Randall about 1 year ago. Updated 11 months ago.

Status:
Resolved
Priority:
Normal
Assigned To:
-
Category:
-
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Story points:
-
Release:
Release relationship:
Auto

Description

When running with config.log_level = :debug, rails outputs the actual SQL queries that activerecord is using. That is great, but when debugging a server under load with many workers, it becomes almost impossible to follow which SQL queries belong to which request.

It would be helpful to tag those log lines with the same req_id that is listed in the normal JSON log output.

Associated revisions

Revision 810f2d8a (diff)
Added by Joshua C. Randall about 1 year ago

13558: add req_id as a tag to Rails.logger

closes #13558

Arvados-DCO-1.1-Signed-off-by: Joshua C. Randall <>

Revision 63def826
Added by Tom Clegg about 1 year ago

Merge branch 'wtsi-hgi-13558-debug-log-tag-req-id'

closes #13558

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <>

History

#1 Updated by Joshua Randall about 1 year ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

#2 Updated by Joshua Randall about 1 year ago

PR udpated with DCO

#3 Updated by Anonymous about 1 year ago

  • Status changed from Feedback to Resolved

#4 Updated by Ward Vandewege 11 months ago

  • Release set to 13

#5 Updated by Ward Vandewege 11 months ago

  • Target version set to 2018-09-19 Sprint

Also available in: Atom PDF