Skip to content

Conversation

@UrosPurtic
Copy link
Contributor

No description provided.

];

if($this->profiler->shouldLogProfilerOutput($responseElapsedTimeInMs)){
$rawData['profiler'] = \json_encode($this->profiler->getProfilerOutput($httpCode));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This problem is because the profiler output relies on $httpCode, not $responseElapsedTimeInMs.
This will not change the original behavior of the values 0, 1, or 2 (see application.ini)
You need to decide whether to log profiler output base don $httpCode and $responseElapsedTimeInMs.

Copy link
Contributor

@ppavlovic ppavlovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the comments

@ppavlovic ppavlovic merged commit 123b2a8 into g4code:master Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants