Disable logging of each request to commercetools
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3539224. -->
Reported by: [murz](https://www.drupal.org/user/157092)
Related to !65
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>The commercetools-sdk PHP library logs every request to the commercetools API to the logger, that produces a lot of unnecessary items in Drupal logs.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Would be good to add an option to the commercetools advanced settings "Log requests to commercetools" (disabled by default) and log them only if it is enabled.</p>
<p>The logger is passed in the function <code>CommercetoolsApiService::getClient()</code> - we should check the configuration and do not pass the logger, if not enabled.</p>
issue