Closed lotyp closed 6 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 95.24%. Comparing base (
331a168
) to head (1332047
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Changes
Introduced additional options in DriverConfig for detailed logging control:
logInterpolatedQueries
. Converts query into interpolated one. (Before change, this was done usinglogQueryParameters
)logQueryParameters
- Now, does, what variable name says — Logs query parameters as arrayModified statement method in Driver.php to utilize new logging options, enriching log context with driver details and query parameters.
Rationale
These changes aim to improve the ORM's debugging and monitoring capabilities by offering detailed and configurable logging insights.
Checklist
How was this tested:
Added new tests to cover context parameters and driver
Created example application with sample entity, fired persist to get logger output, which now looks like this:
logInterpolatedQueries => true
andlogQueryParameters' => true
:When
logInterpolatedQueries => false
andlogQueryParameters' => true
:Default behavior (both parameters set to
false
):