Project

General

Profile

Actions

Feature #13558

closed

include req_id in rails SQL debug logging

Added by Joshua Randall almost 6 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
-
Category:
-
Target version:
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