Project

General

Profile

Actions

Bug #83317

closed

Syslog - Core errors are logged without setting column error

Added by Steffen Kamper almost 7 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Logging
Target version:
-
Start date:
2017-12-14
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
sys_log
Complexity:
Is Regression:
Sprint Focus:

Description

with TYPO3 v9.0.0 i see errors in log without setting the column error (it's still "0")
Example:
Core: Error handler (BE): TYPO3 Deprecation Notice: Second argument $deepDirectory of GeneralUtility::mkdir_deep() will be removed in TYPO3 v10.0, use a combined string as first argument instead. in /Users/steffen/Development/web/libs/typo3/typo3_src-9.0.0/typo3/sysext/core/Classes/Utility/GeneralUtility.php line 2056

As this comes from Core Error Handler, even it's only a Notice, i think error column should be set. I use a cleanup where i delete all entries where error > 0, and those entries are shown in log as errors.

Actions #1

Updated by Susanne Moog almost 7 years ago

  • Category set to Logging
Actions #2

Updated by Markus Klein almost 7 years ago

Can you push a patch?

Actions #3

Updated by Steffen Kamper almost 7 years ago

will try to find the time between the days

Actions #4

Updated by Steffen Kamper almost 7 years ago

The problem is in TYPO3\CMS\Core\Error\ErrorHandler->handleError
switch ($errorLevel) is insufficient, as the errorLevel is a number containing several flags. So this switch should be changed to match containing flags.

Setting severity by default to "0" is Imho wrong for this function, minimum severity should be 1.

Actions #5

Updated by Markus Klein over 4 years ago

  • Status changed from New to Needs Feedback

Reading this report again some long time later, I currently fail to understand the problem.

Would you mind elaborating on the problem again? Thanks a lot.

Actions #6

Updated by Benni Mack over 4 years ago

  • Status changed from Needs Feedback to Closed
Actions

Also available in: Atom PDF