Skip to content
Snippets Groups Projects
Commit 91370410 authored by Mohit Bansal's avatar Mohit Bansal Committed by Yas Naoi
Browse files

Issue #3236176 by mohit.bansal623, yas: Change logger()->notice() to logger()->info()

parent c86b8055
No related branches found
No related tags found
No related merge requests found
......@@ -3924,7 +3924,7 @@ class Ec2Service extends CloudServiceBase implements Ec2ServiceInterface {
break;
}
catch (\Exception $e) {
$this->logger('aws_cloud')->notice($e->getMessage());
$this->logger('aws_cloud')->info($e->getMessage());
$pinged = FALSE;
}
}
......@@ -3942,7 +3942,7 @@ class Ec2Service extends CloudServiceBase implements Ec2ServiceInterface {
$instance_id = $response->getBody()->getContents();
}
catch (\Exception $e) {
$this->logger('aws_cloud')->notice($e->getMessage());
$this->logger('aws_cloud')->info($e->getMessage());
$instance_id = '';
}
return $instance_id;
......
......@@ -1073,7 +1073,7 @@ class CloudService extends CloudServiceBase implements CloudServiceInterface {
$send_mail->mail($send_message);
\Drupal::logger('cloud')->notice($this->t('An @type notification has been sent to @email for @type with the subject @subject.', [
\Drupal::logger('cloud')->info($this->t('An @type notification has been sent to @email for @type with the subject @subject.', [
'@type' => $message_type,
'@email' => $emails,
'@subject' => $subject,
......
......@@ -353,7 +353,7 @@ trait CloudContentEntityTrait {
if ($passive_operation === 'deleted') {
// @label doesn't have any link since it is already deleted.
$this->logger($channel)->notice($this->t('@type: @passive_operation @label.', [
$this->logger($channel)->info($this->t('@type: @passive_operation @label.', [
'@type' => $entity_type->getLabel(),
'@passive_operation' => $passive_operation,
'@label' => $entity->label(),
......@@ -372,7 +372,7 @@ trait CloudContentEntityTrait {
$link = $entity->toLink('View', 'edit-form')->toString();
}
$this->logger($channel)->notice($this->t('@type: @passive_operation %label.', [
$this->logger($channel)->info($this->t('@type: @passive_operation %label.', [
'@type' => $entity_type->getLabel(),
'@passive_operation' => $passive_operation,
'%label' => $entity->label(),
......
......@@ -163,7 +163,7 @@ class CloudContentEntityTraitTest extends ModuleTestBase {
'%label' => $entity->label(),
];
$link = $entity->toLink($this->t('View'))->toString();
$this->assertLogMessage($channel, $this->t('@type: @passive_operation %label.', $t_args), [], RfcLogLevel::NOTICE, $link);
$this->assertLogMessage($channel, $this->t('@type: @passive_operation %label.', $t_args), [], RfcLogLevel::INFO, $link);
// Delete test case.
$passive_operation = 'deleted';
......@@ -184,7 +184,7 @@ class CloudContentEntityTraitTest extends ModuleTestBase {
'@passive_operation' => $passive_operation,
'@label' => $entity->label(),
];
$this->assertLogMessage($channel, $this->t('@type: @passive_operation @label.', $t_args), [], RfcLogLevel::NOTICE);
$this->assertLogMessage($channel, $this->t('@type: @passive_operation @label.', $t_args), [], RfcLogLevel::INFO);
}
/**
......
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