Unexpected output: Affected paths: relative - resubmit patch.
⚙ D459 INP-1853 - Use the "\kUtil::varDumpColorized" method in the System Log Web UI
Page MenuHomeIn-Portal Phabricator

INP-1853 - Use the "\kUtil::varDumpColorized" method in the System Log Web UI
AcceptedPublic

Authored by alex on Jan 15 2024, 6:46 AM.

Details

Reviewers
erik
Test Plan
  • apply the patch from the D458 differential revision
  • in IDE:
    1. add the following code on top of the \UsersEventHandler::SetCustomQuery method in the core/units/users/users_event_handler.php file:
$log = $this->Application->log('test message (user grid)', 555);
$log->addTrace();
$log->addRequestData();
$log->addSessionData(true);
$log->setLogLevel(kLogger::LL_ERROR);
$log->write();
    1. save changes
  • in Admin Console:
    1. go to the User ManagementUsers section (that creates a System Log record, but it isn't visible in the Debugger)
    2. go to the Logs & ReportsSystem Log section
    3. confirm, that record, generated above, is present in the System Log
    4. open it for editing
    5. confirm, that:
      1. request data is logged and is displayed using Symfony VarDumper component
      2. session data is logged and is displayed using Symfony VarDumper component
      3. parameter data in the trace is logged and is displayed using Symfony VarDumper component

Diff Detail

Repository
rINP In-Portal
Branch
/in-portal/branches/5.2.x
Lint
Lint OK
Unit
No Unit Test Coverage
Build Status
Buildable 1233
Build 1233: arc lint + arc unit

Event Timeline

alex created this revision.Jan 15 2024, 6:46 AM
alex requested review of this revision.Jan 15 2024, 6:46 AM
erik accepted this revision.Jan 15 2024, 6:58 AM
This revision is now accepted and ready to land.Jan 15 2024, 6:58 AM