Skip to content
Snippets Groups Projects
Verified Commit 2a71397e authored by Jess's avatar Jess
Browse files

Issue #3381078 by mfb, smustgrave, xjm, quietone, andypost: Demote routine log...

Issue #3381078 by mfb, smustgrave, xjm, quietone, andypost: Demote routine log events from "notice" to "info"

(cherry picked from commit 9c025861)
parent 578c5525
No related branches found
No related tags found
20 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,!5858Issue #3401971 by fjgarlin: Test-only job shouldn't require constant rebases...,!5716Draft: Issue #3401102 by Spokje, longwave, smustgrave: Nightwatch artifacts on GitLab not retained,!5674Transaction autocommit during shutdown relies on unreliable object destruction order,!5644Issue #3395563 by nireneko, marvil07, lauriii, borisson_, smustgrave, Wim...
Pipeline #47424 failed
Pipeline: drupal

#47434

    Pipeline: drupal

    #47433

      Pipeline: drupal

      #47432

        +1
        ......@@ -143,7 +143,7 @@ public function execute($entity = NULL) {
        $message = $this->mailManager->mail('system', 'action_send_email', $recipient, $langcode, $params);
        // Error logging is handled by \Drupal\Core\Mail\MailManager::mail().
        if ($message['result']) {
        $this->logger->notice('Sent email to %recipient', ['%recipient' => $recipient]);
        $this->logger->info('Sent email to %recipient', ['%recipient' => $recipient]);
        }
        }
        ......
        ......@@ -381,7 +381,7 @@ public function save(array $form, FormStateInterface $form_state) {
        $form_state->setValue('cid', $comment->id());
        // Add a log entry.
        $logger->notice('Comment posted: %subject.', [
        $logger->info('Comment posted: %subject.', [
        '%subject' => $comment->getSubject(),
        'link' => Link::fromTextAndUrl(t('View'), $comment->toUrl()->setOption('fragment', 'comment-' . $comment->id()))->toString(),
        ]);
        ......
        ......@@ -44,7 +44,7 @@ protected function getDeletionMessage() {
        * {@inheritdoc}
        */
        public function logDeletionMessage() {
        $this->logger('comment')->notice('Deleted comment @cid and its replies.', ['@cid' => $this->entity->id()]);
        $this->logger('comment')->info('Deleted comment @cid and its replies.', ['@cid' => $this->entity->id()]);
        }
        }
        ......@@ -133,14 +133,14 @@ public function sendMailMessages(MessageInterface $message, AccountInterface $se
        }
        if (!$message->isPersonal()) {
        $this->logger->notice('%sender-name (@sender-from) sent an email regarding %contact_form.', [
        $this->logger->info('%sender-name (@sender-from) sent an email regarding %contact_form.', [
        '%sender-name' => $sender_cloned->getAccountName(),
        '@sender-from' => $sender_cloned->getEmail() ?? '',
        '%contact_form' => $contact_form->label(),
        ]);
        }
        else {
        $this->logger->notice('%sender-name (@sender-from) sent %recipient-name an email.', [
        $this->logger->info('%sender-name (@sender-from) sent %recipient-name an email.', [
        '%sender-name' => $sender_cloned->getAccountName(),
        '@sender-from' => $sender_cloned->getEmail(),
        '%recipient-name' => $message->getPersonalRecipient()->getAccountName(),
        ......
        ......@@ -135,7 +135,7 @@ public function testInvalidRecipient() {
        */
        public function testSendMailMessages(MessageInterface $message, AccountInterface $sender, $results) {
        $this->logger->expects($this->once())
        ->method('notice');
        ->method('info');
        $this->mailManager->expects($this->any())
        ->method('mail')
        ->willReturnCallback(
        ......
        ......@@ -95,7 +95,7 @@ public function view(Request $request, SearchPageInterface $entity) {
        if ($plugin->isSearchExecutable()) {
        // Log the search.
        if ($this->config('search.settings')->get('logging')) {
        $this->logger->notice('Searched %type for %keys.', ['%keys' => $keys, '%type' => $entity->label()]);
        $this->logger->info('Searched %type for %keys.', ['%keys' => $keys, '%type' => $entity->label()]);
        }
        // Collect the search results.
        ......
        ......@@ -201,12 +201,12 @@ public function save(array $form, FormStateInterface $form_state) {
        switch ($result) {
        case SAVED_NEW:
        $this->messenger()->addStatus($this->t('Created new term %term.', ['%term' => $view_link]));
        $this->logger('taxonomy')->notice('Created new term %term.', ['%term' => $term->getName(), 'link' => $edit_link]);
        $this->logger('taxonomy')->info('Created new term %term.', ['%term' => $term->getName(), 'link' => $edit_link]);
        break;
        case SAVED_UPDATED:
        $this->messenger()->addStatus($this->t('Updated term %term.', ['%term' => $view_link]));
        $this->logger('taxonomy')->notice('Updated term %term.', ['%term' => $term->getName(), 'link' => $edit_link]);
        $this->logger('taxonomy')->info('Updated term %term.', ['%term' => $term->getName(), 'link' => $edit_link]);
        $form_state->setRedirect('entity.taxonomy_term.canonical', ['taxonomy_term' => $term->id()]);
        break;
        }
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Finish editing this message first!
        Please register or to comment