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

chore: use logger context #657

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mRoca
Copy link

@mRoca mRoca commented Oct 15, 2024

This PR replaces all $this->logger->debug('Response JSON : ' . print_r($responseResult->Body, true)); by 2 logs (request and response) with a static message and all variable data passed in the context.

This refacto allows using a custom Logger and getting variable data without parsing actual log messages in order to transform print_r strings back into php or json array.

Debug calls have been refactored in order to avoid duplication of if ($this->_root->Config->DebugMode) {

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.

1 participant