Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add additional params to check if more data in response is needed #11

Merged
merged 2 commits into from
Feb 21, 2024
Merged

Add additional params to check if more data in response is needed #11

merged 2 commits into from
Feb 21, 2024

Conversation

UrosPurtic
Copy link
Contributor

No description provided.

@@ -85,6 +96,11 @@ private function shouldLogProfiler($httpCode)
return self::LOG_ERRORS_ONLY && substr($httpCode, 0, 1) != 2;
}

public function shouldLogProfilerOutput($responseElapsedTimeInMs)
{
return $responseElapsedTimeInMs > $this->threshold;
Copy link
Contributor

Choose a reason for hiding this comment

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

What will happen if you don't set a threshold value?

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 086ae38 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