Closed (fixed)
Project:
Cloud
Version:
3.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
31 Jul 2020 at 06:13 UTC
Updated:
20 Aug 2020 at 17:49 UTC
Jump to comment: Most recent, Most recent file
$this->t() into the following logger messages:$ grep -rin "\->error('"
src/Traits/CloudContentEntityTrait.php:410: $this->logger($channel)->error('@type: @label could not be @passive_operation.', [
src/Traits/CloudContentEntityTrait.php:428: $this->logger($channel)->error('@type: %label could not be @passive_operation.', [
modules/tools/s3_to_k8s/s3_to_k8s.module:39: $logger->error('The configuration aws_cloud is empty. Please select an AWS Cloud Provider in admin setting page.');
modules/tools/s3_to_k8s/s3_to_k8s.module:45: $logger->error('The configuration s3_bucket is empty. Please input a S3 Bucket in admin setting page.');
modules/tools/s3_to_k8s/s3_to_k8s.module:51: $logger->error('The configuration s3_path is empty. Please input a S3 Path in admin setting page.');
modules/tools/s3_to_k8s/s3_to_k8s.module:59: $logger->error('The configuration k8s_cluster is empty. Please select K8s Cluster in admin setting page.');
modules/tools/k8s_to_s3/k8s_to_s3.module:74: $logger->error('The configuration k8s_clusters is empty. Please select K8s Clusters in admin setting page.');
modules/tools/k8s_to_s3/k8s_to_s3.module:80: $logger->error('The configuration aws_cloud is empty. Please select an AWS Cloud Provider in admin setting page.');
modules/tools/k8s_to_s3/k8s_to_s3.module:86: $logger->error('The configuration s3_bucket is empty. Please input a S3 Bucket in admin setting page.');
modules/cloud_service_providers/aws_cloud/src/Form/Ec2/ImageDeleteForm.php:87: $this->logger($entity->getEntityType()->getProvider())->error('@type: @label could not be deleted.', [
$ grep -rin "\->debug('"
modules/cloud_service_providers/aws_cloud/aws_cloud.module:140: \Drupal::logger('aws_cloud')->debug('No cloud context specified.');
modules/cloud_service_providers/aws_cloud/aws_cloud.module:191: \Drupal::logger('aws_cloud')->debug('No cloud context specified.');
modules/cloud_service_providers/aws_cloud/aws_cloud.module:232: \Drupal::logger('aws_cloud')->debug('No cloud context specified.');
modules/cloud_service_providers/aws_cloud/aws_cloud.module:296: \Drupal::logger('aws_cloud')->debug('No cloud context specified.');
modules/cloud_service_providers/aws_cloud/aws_cloud.module:436: \Drupal::logger('aws_cloud')->debug('No cloud context specified.');
modules/cloud_service_providers/aws_cloud/aws_cloud.module:2706: \Drupal::logger('aws_cloud')->debug('No cloud context specified.');
modules/cloud_service_providers/aws_cloud/aws_cloud.module:3471: \Drupal::logger('aws_cloud')->debug('No cloud context specified.');
modules/cloud_service_providers/openstack/openstack.module:506: \Drupal::logger('openstack')->debug('No cloud context specified.');
modules/cloud_service_providers/openstack/openstack.module:547: \Drupal::logger('openstack')->debug('No cloud context specified.');
modules/cloud_service_providers/openstack/openstack.module:609: \Drupal::logger('openstack')->debug('No cloud context specified.');
modules/cloud_service_providers/openstack/openstack.module:785: \Drupal::logger('openstack')->debug('No cloud context specified.');
$ grep -rin "\->notice('"
src/Form/CloudServerTemplateRevisionRevertForm.php:140: $this->logger('launch_template')->notice('Launch template: reverted %title revision %revision.', ['%title' => $this->revision->label(), '%revision' => $this->revision->getRevisionId()]);
src/Form/CloudConfigRevisionRevertForm.php:136: $this->logger('cloud_config')->notice('Cloud service provider: reverted %title revision %revision.', ['%title' => $this->revision->label(), '%revision' => $this->revision->getRevisionId()]);
src/Form/CloudConfigRevisionDeleteForm.php:136: $this->logger('cloud_config')->notice('Cloud service provider: deleted %title revision %revision.', ['%title' => $this->revision->label(), '%revision' => $this->revision->getRevisionId()]);
src/Form/CloudServerTemplateRevisionDeleteForm.php:140: $this->logger('launch_template')->notice('Launch template: deleted %title revision %revision.', ['%title' => $this->revision->label(), '%revision' => $this->revision->getRevisionId()]);
src/Form/CloudProjectRevisionRevertForm.php:140: $this->logger('content')->notice('Cloud project: reverted %title revision %revision.', ['%title' => $this->revision->label(), '%revision' => $this->revision->getRevisionId()]);
src/Form/CloudProjectRevisionDeleteForm.php:139: $this->logger('content')->notice('Cloud project: deleted %title revision %revision.', ['%title' => $this->revision->label(), '%revision' => $this->revision->getRevisionId()]);
modules/php
cloud_budget/cloud_budget.module:66: \Drupal::logger('cloud_budget')->notice('@type: updated %label.', [
modules/cloud_service_providers/k8s/src/Plugin/cloud/server_template/K8sCloudServerTemplatePlugin.php:611: $this->logger('k8s')->notice('@type: created %label.', [
modules/cloud_service_providers/k8s/src/Plugin/cloud/server_template/K8sCloudServerTemplatePlugin.php:633: $this->logger('k8s')->notice('@type: launched %label.', [
modules/cloud_service_providers/k8s/k8s.module:1993: \Drupal::logger('k8s')->notice('@type: deleted %label.', [
| Comment | File | Size | Author |
|---|---|---|---|
| #18 | 3162532-18-8.x-1.x.patch | 40.15 KB | yas |
| #14 | 3162532-14.patch | 39.35 KB | yas |
Comments
Comment #2
Pooja Ganjage commentedHi,
I am applying patch for this issue.
$this->t() would not be apply in module file as it is procedural code support.
Kindly review this patch once.
Let me know for anything else.
Thanks.
Comment #3
Pooja Ganjage commentedComment #4
yas@pooja-ganjage
Thank you for making your contribution toward this issue. Unfortunately the patch didn't pass the DrupalCI test, so could you please re-create the patch? Also, we also need to
t()function (not$this->t()) in*.modulefile.Comment #5
onotm commentedComment #6
onotm commentedComment #8
onotm commentedComment #10
onotm commentedComment #11
onotm commentedComment #13
onotm commentedFor a moment, I tried reverting the changes to CloudContentEntityTrait.php, because the related tests were failing.
Comment #14
yas@onotm
Thank you for updating the patch. I added
t()functions and refactored the patch, so could you please review the attached?Comment #15
onotm commentedThank you for updating the patch, it looks good for me.
Comment #16
onotm commentedComment #17
yas@onotm
Thank you for your review. I'll merge the patch to
8.x-1.x,8.x-2.xand3.x. Closing this issue asFixed.Comment #18
yasThis patch will be applied to
8.x-1.x.Comment #22
yasComment #23
yas@all FYI,