move message to front of log in error handler #335
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
before:
[Thu Oct 30 18:51:20.996498 2025] [php:notice] [pid 1296970] [client ...:51993] internal server error: {"message":"An internal server error has occurred.","REMOTE_USER":"...","REMOTE_ADDR":"...","errorid":"6903b3a8f346c","trace":["#0 /srv/www/unity-web-2025-9-30/resources/lib/UnityHTTPD.php(127): UnityWebPortal\\\\lib\\\\UnityHTTPD::errorLog()","#1 /srv/www/unity-web-2025-9-30/resources/lib/UnityHTTPD.php(143): UnityWebPortal\\\\lib\\\\UnityHTTPD::internalServerError()","#2 [internal function]: UnityWebPortal\\\\lib\\\\UnityHTTPD::shutdown()","#3 {main}"],"data":{"error":{"type":1,"message":["Uncaught Exception: no such request: uid='...' request_for='...' in /srv/www/unity-web-2025-9-30/resources/lib/UnitySQL.php:106","Stack trace:","#0 /srv/www/unity-web-2025-9-30/resources/lib/UnityGroup.php(257): UnityWebPortal\\\\lib\\\\UnitySQL->getRequest()","#1 /srv/www/unity-web-2025-9-30/webroot/panel/pi.php(22): UnityWebPortal\\\\lib\\\\UnityGroup->approveUser()","#2 {main}"," thrown"],"file":"/srv/www/unity-web-2025-9-30/resources/lib/UnitySQL.php","line":106}}}after:
[Thu Oct 30 18:51:20.996498 2025] [php:notice] [pid 1296970] [client ...:51993] internal server error: {"message":"An internal server error has occurred.","data":{"error":{"type":1,"message":["Uncaught Exception: no such request: uid='...' request_for='...' in /srv/www/unity-web-2025-9-30/resources/lib/UnitySQL.php:106","Stack trace:","#0 /srv/www/unity-web-2025-9-30/resources/lib/UnityGroup.php(257): UnityWebPortal\\\\lib\\\\UnitySQL->getRequest()","#1 /srv/www/unity-web-2025-9-30/webroot/panel/pi.php(22): UnityWebPortal\\\\lib\\\\UnityGroup->approveUser()","#2 {main}"," thrown"],"file":"/srv/www/unity-web-2025-9-30/resources/lib/UnitySQL.php","line":106}},"REMOTE_USER":"...","REMOTE_ADDR":"...","errorid":"6903b3a8f346c","trace":["#0 /srv/www/unity-web-2025-9-30/resources/lib/UnityHTTPD.php(127): UnityWebPortal\\\\lib\\\\UnityHTTPD::errorLog()","#1 /srv/www/unity-web-2025-9-30/resources/lib/UnityHTTPD.php(143): UnityWebPortal\\\\lib\\\\UnityHTTPD::internalServerError()","#2 [internal function]: UnityWebPortal\\\\lib\\\\UnityHTTPD::shutdown()","#3 {main}"]}