Project

General

Profile

Actions

Feature #13558

closed

include req_id in rails SQL debug logging

Added by Joshua Randall over 4 years ago. Updated over 4 years 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.

Actions #1

Updated by Joshua Randall over 4 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100
Actions #2

Updated by Joshua Randall over 4 years ago

PR udpated with DCO

Actions #3

Updated by Anonymous over 4 years ago

  • Status changed from Feedback to Resolved
Actions #4

Updated by Ward Vandewege over 4 years ago

  • Release set to 13
Actions #5

Updated by Ward Vandewege over 4 years ago

  • Target version set to 2018-09-19 Sprint
Actions

Also available in: Atom PDF