Project

General

Profile

Actions

Feature #13558

closed

include req_id in rails SQL debug logging

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

Also available in: Atom PDF