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

[BUGFIX] Improve error and exception handling #831

Merged
merged 2 commits into from Sep 9, 2019

Conversation

helhum
Copy link
Member

@helhum helhum commented Sep 9, 2019

Previously we ignored all TYPO3 configuration regarding
error and exception handling, to get a more reliable behavior
and a decent error output.

With this change we loosen this strictness a bit and at least look
at the configured error levels that should be logged or turned
into exceptions, but still enforce a reasonable configuration, by not
allowing warnings to be omitted.

Additionally we make sure both exceptions and errors are properly logged
using the logging framework.

We still disallow changing the error and exception handler to disallow
misconfiguration and also still not log errors to the legacy database log.

In case the latter is needed, it would still be possible to create a writer,
that writes to the database in a way that the TYPO3 backend log module
can use it.

Previously we ignored all TYPO3 configuration regarding
error and exception handling, to get a more reliable behavior
and a decent error output.

With this change we loosen this strictness a bit and at least look
at the configured error levels that should be logged or turned
into exceptions, but still enforce a reasonable configuration, by not
allowing warnings to be omitted.

Additionally we make sure both exceptions and errors are properly logged
using the logging framework.

We still disallow changing the error and exception handler to disallow
misconfiguration and also still not log errors to the legacy database log.

In case the latter is needed, it would still be possible to create a writer,
that writes to the database in a way that the TYPO3 backend log module
can use it.
Skip the deprecation message regarding old command registration
in early boot for TYPO3 8.7 installations, to allow users
to more easily use the latest console version with that
older TYPO3 version.

Still nag people when using TYPO3 9.5 though, as Symfony Commands
are available since TYPO3 8.7, which means enough grace time to switch.
@helhum helhum merged commit d28faa1 into TYPO3-Console:master Sep 9, 2019
@helhum helhum deleted the improve-error-handling branch September 9, 2019 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant