Skip to content
Snippets Groups Projects
Commit 1cc6cc62 authored by catch's avatar catch
Browse files

Issue #3402173 by sijumpk, Abhijith S, longwave, smustgrave: Remove...

Issue #3402173 by sijumpk, Abhijith S, longwave, smustgrave: Remove @backtrace_string in ExceptionLoggingSubscriber::onClientError()

(cherry picked from commit d3496f63)
parent f7e93f2a
No related branches found
No related tags found
16 merge requests!8376Drupal views: adding more granularity to the ‘use ajax’ functionality,!8300Issue #3443586 View area displays even when parent view has no results.,!7567Issue #3153723 by quietone, Hardik_Patel_12: Change the scaffolding...,!7565Issue #3153723 by quietone, Hardik_Patel_12: Change the scaffolding...,!7509Change label "Block description" to "Block type",!7344Issue #3292350 by O'Briat, KlemenDEV, hswong3i, smustgrave, quietone: Update...,!6922Issue #3412959 by quietone, smustgrave, longwave: Fix 12 'un' words,!6848Issue #3417553 by longwave: Remove withConsecutive() in CacheCollectorTest,!6720Revert "Issue #3358581 by pfrenssen, _tarik_, a.dmitriiev, smustgrave:...,!6560Update ClaroPreRender.php, confirming classes provided are in array format,!6528Issue #3414261 by catch: Add authenticated user umami performance tests,!6501Issue #3263668 by omkar-pd, Wim Leers, hooroomoo: Re-enable inline form errors...,!6354Draft: Issue #3380392 by phma: Updating language weight from the overview reverts label if translated,!6324Issue #3416723 by Ludo.R: Provide a "node type" views default argument,!6119Issue #3405704 by Spokje, longwave: symfony/psr-http-message-bridge major version bump,!5950Issue #3403653 by alexpott, longwave: Incorporate improvements to how contrib runs PHPStan to core
Pipeline #66711 passed with warnings
Pipeline: drupal

#66715

    ......@@ -87,6 +87,7 @@ public function onClientError(ExceptionEvent $event) {
    $error += [
    'status_code' => $exception->getStatusCode(),
    ];
    unset($error['@backtrace_string']);
    $this->logger->get('client error')
    ->warning(Error::DEFAULT_ERROR_MESSAGE, $error);
    }
    ......
    ......@@ -79,6 +79,11 @@ public function testExceptionLogging() {
    foreach ($expected_channels as $key => $expected_channel) {
    $this->assertEquals($expected_channel, $logs[$key][2]['channel']);
    $this->assertEquals($expected_levels[$key], $logs[$key][0]);
    // Verify that @backtrace_string is removed from client error.
    if ($logs[$key][2]['channel'] === 'client error') {
    $this->assertArrayNotHasKey('@backtrace_string', $logs[$key][2]);
    }
    }
    }
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment