Problem/Motivation

Log messages are being logged despite the "debug" log level is disabled in settings.

Example:

Drupal\billwerk_subscriptions\Api::get: Sending GET request to https://app.billwerk.com/api/v1/contracts/123456789/Subscriptions. Status 200 "OK". Result size in bytes: 274
Caller: /web/modules/contrib/billwerk_subscriptions/src/Api.php:1104:get:Drupal\billwerk_subscriptions\Api:->

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Anybody created an issue. See original summary.

anybody’s picture

Assigned: Unassigned » grevil

Still the case. @grevil could you please check that?

Thanks!

grevil made their first commit to this issue’s fork.

grevil’s picture

Assigned: grevil » anybody
Status: Active » Needs review

Done, the wrong log helper level was used.

Please review!

anybody’s picture

Assigned: anybody » Unassigned
Status: Needs review » Reviewed & tested by the community
if (empty($loggingLevels) || !in_array($level, $loggingLevels)) {

missing "!" was the root cause!

  • anybody committed 115c61f9 on 1.x authored by grevil
    feat: #3463480 Debug messsages getting logged despite "debug" level...
anybody’s picture

Status: Reviewed & tested by the community » Fixed

Merged, please tag a new release @grevil

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.