View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
18565 | Feature requests | _ Unknown | public | 2022-12-21 07:46 | 2022-12-22 18:31 |
Reporter | apache_borys | Assigned To | apache_borys | ||
Priority | none | Severity | feature | ||
Status | assigned | Resolution | open | ||
Summary | 18565: Provide more descriptive log about exceptions happen during running LimeSurvey | ||||
Description | So, my feature request / proposal to embrace Yii 1.1 application into try catch. By this way we will be able to catch all possible errors with stack traces what can be really helpful and make our life easier to debug application. | ||||
Tags | No tags attached. | ||||
Bug heat | 6 | ||||
Story point estimate | |||||
Users affected % | |||||
done here |
|
You have a simple example where it can be interesting ? I really don't seen any interest here.
|
|
That feature request related to silently down of app issue. That means - when we have any kind of runtime (dev, production, staging, testing) we will be able to see stack trace of exceptions in stderr (by default it's error log of web server). Of course in production it will be still white page. But for example - if it will be white page on client's machine and client will ask us what's going on? Will be way better to open error_log and understand what was wrong instead trying to reproduce it. |
|
But : your PHP error log already contains the error in all case ? No ? I never have such case where i don't have any error … sometimes : hard to find because client ask me some days after …
Please: give a an update of code where i
Where this is the only solution. |
|
So, real example what happened with us recently: According to solution - it's not only one brilliant solution. I am pretty sure we can do it in many ways. But this solution can be stronger than others because straight forward. According to Yii 1.1 approach (scripting approach). Will be way better to have general try-catch construction in index.php. It can guarantee us to catch some edge cases what was not catched for some reasons by custom exception listeners. Or maybe those listeners disabled for some reasons (for example because it's production). |
|
Yeah, we run CI in debug 0 to make sure we use same assets as people in production. But sometimes that makes it's harder to debug, true. Hm. |
|
With bad credentials we have clean 500 error with CDbConnection failed to open the DB connection (out of CI). Web: see screenshot CLI :
With or without your fix : i have exactly the same issue and no diff on error log |
|
PS : for CI : https://github.com/LimeSurvey/LimeSurvey/blob/8aad2d351029cbd6cfd2a4b8648104a195b84b5c/tests/bootstrap.php#L223 |
|
So, you want to deny the fact that happened to us recently? Besides me, other developers have been involved in this problem and can confirm this. Also the proposed improvement really helped in that situation. |
|
I just want to understand why it's needed … I just don't see any difference when testing myself … Just understand , and understand too why the fix are not in |
|
I don't know why you can't reproduce it. Also, I expanded try catch coverage in index.php, just to be on safe side. What do you think? |
|
Maybe i can not reproduce because i don't use the good step, Else about updating index.php used since a lot of time, yes i'm afraid of new issue in other server system … |
|
With this issue we faced in CI only (as I remember). Also try catch operators is compatible with all known operational systems. It shouldn't have any side effects. |
|
See https://github.com/LimeSurvey/LimeSurvey/actions/runs/3698492721/jobs/6264770444#step:8:2 Maybe a specific way with CI ? |
|
Please check out my screencast video. In first try I tried to manage Exception without try - catch in index.php and log didn't contain anything. In second try I did the same but with try - catch construction and log contain error record. Level of severity was NOTICE but it can be fixed later. Fact of existence in log is obvious. Please checkout my video https://drive.google.com/file/d/1RkIXEQs8rJhup_8PtiKTLtUm3Sru9w7Q/view?usp=sharing |
|
I don't say it don't happen in specific situation … Commit can be merged, i just want to understand what is this specific situation … |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2022-12-21 07:46 | apache_borys | New Issue | |
2022-12-21 07:46 | apache_borys | Status | new => assigned |
2022-12-21 07:46 | apache_borys | Assigned To | => apache_borys |
2022-12-21 07:53 | apache_borys | Note Added: 73218 | |
2022-12-21 07:53 | apache_borys | Bug heat | 0 => 2 |
2022-12-21 08:13 | DenisChenu | Note Added: 73219 | |
2022-12-21 08:13 | DenisChenu | Bug heat | 2 => 4 |
2022-12-21 08:28 | apache_borys | Note Added: 73221 | |
2022-12-21 10:50 | DenisChenu | Note Added: 73222 | |
2022-12-21 11:34 | apache_borys | Note Added: 73223 | |
2022-12-21 11:46 | ollehar | Note Added: 73226 | |
2022-12-21 11:46 | ollehar | Bug heat | 4 => 6 |
2022-12-21 12:04 | DenisChenu | Note Added: 73227 | |
2022-12-21 12:04 | DenisChenu | File Added: Capture d’écran du 2022-12-21 11-52-23.png | |
2022-12-21 12:05 | DenisChenu | Note Added: 73228 | |
2022-12-21 12:07 | apache_borys | Note Added: 73229 | |
2022-12-21 12:10 | DenisChenu | Note Added: 73231 | |
2022-12-21 12:13 | apache_borys | Note Added: 73232 | |
2022-12-21 12:15 | DenisChenu | Note Added: 73233 | |
2022-12-21 12:20 | apache_borys | Note Added: 73234 | |
2022-12-22 17:05 | DenisChenu | Note Added: 73284 | |
2022-12-22 17:05 | DenisChenu | File Added: Capture d’écran du 2022-12-22 17-03-16.png | |
2022-12-22 17:42 | apache_borys | Note Added: 73287 | |
2022-12-22 18:31 | DenisChenu | Note Added: 73291 |