Disable logging of each request to commercetools

Created on 1 August 2025, 3 months ago

Problem/Motivation

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.

Proposed resolution

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.

The logger is passed in the function CommercetoolsApiService::getClient() - we should check the configuration and do not pass the logger, if not enabled.

✨ Feature request
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡¦πŸ‡²Armenia murz Yerevan, Armenia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024