Uh oh!
There was an error while loading. Please reload this page.
Update dbug functionality utility.functions.php - #196
Conversation
Resolves #791: The function was already using monolog but it wasn't utilizing the strengths of the tool This caused a lot of noise and extra junk added to the fole.
There was a problem hiding this comment.
Pull Request Overview
This PR updates the debug logging functionality by refactoring the old dbug() function to utilize Monolog’s advanced logging features and improve log output formatting. Key changes include adding typed function signatures and new helper functions, integrating sensitive data masking in log messages, and replacing the old dbug_write implementation.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
272edce to
b2a5f47Comparemiken32
commented
Jun 18, 2026
IMO it would make more sense to put stuff into a utility class rather than add a half dozen more functions to the global namespace. Also I'm not seeing that "sensitive data" formatter used anywhere in the PR. |
Resolves #791: The function was already using monolog but it wasn't utilizing the strengths of the tool.
This caused a lot of noise and extra junk added to the dbug file.