Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LOG] Update some error logs to warning #1138

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

M0rgan01
Copy link
Contributor

@M0rgan01 M0rgan01 commented Jan 27, 2025

Questions Answers
Description? Update some error logs to warning
Type? improvement
BC breaks? no
Deprecations? no
Fixed ticket? -
Sponsor company -
How to test? No need for QA, no behavior change.

@M0rgan01 M0rgan01 added this to the 7.0.0 milestone Jan 27, 2025
@M0rgan01 M0rgan01 force-pushed the turn-some-error-logs-to-warning branch 5 times, most recently from 6f71f1d to 9cdefd5 Compare January 27, 2025 16:40
@@ -78,7 +78,8 @@ public function downloadModule(ModuleDownloaderContext $moduleDownloaderContext)
}

if (!$downloadSuccessful) {
throw (new UpgradeException('All download attempts have failed. Check your environment and try again.'))->setSeverity(UpgradeException::SEVERITY_ERROR);
$message = $this->translator->trans('All download attempts have failed. The module tech %s has been disabled. You can try to update it manually afterwards.', [$moduleDownloaderContext->getModuleName()]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$message = $this->translator->trans('All download attempts have failed. The module tech %s has been disabled. You can try to update it manually afterwards.', [$moduleDownloaderContext->getModuleName()]);
$message = $this->translator->trans('All download attempts have failed. The module %s has been disabled. You can try to update it manually afterwards.', [$moduleDownloaderContext->getModuleName()]);

@M0rgan01 M0rgan01 force-pushed the turn-some-error-logs-to-warning branch 3 times, most recently from d5ec0ed to 600ea97 Compare January 28, 2025 13:16
Quetzacoalt91
Quetzacoalt91 previously approved these changes Jan 29, 2025
Quetzacoalt91
Quetzacoalt91 previously approved these changes Feb 4, 2025
@Quetzacoalt91 Quetzacoalt91 added the enhancement Type: Improvement label Feb 6, 2025
Copy link

sonarqubecloud bot commented Feb 7, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Type: Improvement
Projects
Status: Ready for review
Development

Successfully merging this pull request may close these issues.

4 participants