Uh oh!
There was an error while loading. Please reload this page.
Improve exception logging - #5684
Conversation
364ac02 to
8cee710Compare8cee710 to
491e505CompareUh oh!
There was an error while loading. Please reload this page.
491e505 to
d80309eComparekenjis
commented
Feb 15, 2022
Why this PR is refactoring? |
Uh oh!
There was an error while loading. Please reload this page.
paulbalandan
commented
Feb 15, 2022
Changed title. |
kenjis
commented
Feb 15, 2022
Before: After: |
| unset($frame['line']); | ||
| $idx = $index; | ||
| $idx = str_pad((string) ++$idx, 2, ' ', STR_PAD_LEFT); |
There was a problem hiding this comment.
I feel that's more "natural" way of counting. No offense to zero-based array counting. 😂
There was a problem hiding this comment.
$idx = str_pad((string) ++$idx, 2, '#', STR_PAD_LEFT);This is like the original.
There was a problem hiding this comment.
This is like the original.
This would fail on idx >= 10. https://3v4l.org/DAqmo
There was a problem hiding this comment.
echo '#'.str_pad(++$idx, 3, ' ', STR_PAD_RIGHT).'Some more text', PHP_EOL;
kenjis
commented
Feb 15, 2022
@paulbalandan The log format will be changed. If a user watches log files and parse it to check the error, it may break. |
d80309e to
825534eCompare
Description
Closes#5677
Checklist: