-
Notifications
You must be signed in to change notification settings - Fork 118
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
[LOGS] Improve zip error logs #1078
base: dev
Are you sure you want to change the base?
Conversation
M0rgan01
commented
Dec 10, 2024
Questions | Answers |
---|---|
Description? | Improve zip error logs |
Type? | improvement |
BC breaks? | no |
Deprecations? | no |
Fixed ticket? | - |
Sponsor company | - |
How to test? | - |
Proposal for improving error logs during zip actions |
5831b25
to
0fa2630
Compare
classes/ZipAction.php
Outdated
$this->logger->error( | ||
$this->translator->trans( | ||
'Could not extract %file% from backup, the destination might not be writable.', | ||
['%file%' => $zip->statIndex($i)['name']] | ||
'Could not extract %file%: %error%', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'Could not extract %file%: %error%', | |
'Could not extract %file% from archive: %error%', |
classes/ZipAction.php
Outdated
throw new ZipActionException('Unable to open zipFile ' . $zipFile); | ||
$error = $zip->getStatusString(); | ||
|
||
$this->logger->error($this->translator->trans('Unable to open zipFile %s: %s', [$zipFile, $error])); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$this->logger->error($this->translator->trans('Unable to open zipFile %s: %s', [$zipFile, $error])); | |
$this->logger->error($this->translator->trans('Unable to open archive %s: %s', [$zipFile, $error])); |
classes/ZipAction.php
Outdated
$error = $zip->getStatusString(); | ||
|
||
$this->logger->error($this->translator->trans('Unable to open zipFile %s: %s', [$zipFile, $error])); | ||
throw new ZipActionException('Unable to open zipFile ' . $zipFile . ': ' . $error); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
throw new ZipActionException('Unable to open zipFile ' . $zipFile . ': ' . $error); | |
throw new ZipActionException('Unable to open archive ' . $zipFile . ': ' . $error); |
0fa2630
to
5d3dd1c
Compare
Quality Gate passedIssues Measures |