DB\IO add stack trace to debug/error/warning calls

To add the actuall call reference for DB IO debug calls we add the
call trace as context options
This commit is contained in:
Clemens Schwaighofer
2023-06-16 13:16:16 +09:00
parent f83293ff1a
commit 7748b83a6b
4 changed files with 45 additions and 5 deletions

View File

@@ -567,7 +567,7 @@ class Logging
$context_str = '';
if ($context != []) {
// TODO this here has to be changed to something better
$context_str = ' ' . print_r($context, true);
$context_str = ' :' . print_r($context, true);
}
// build log string
return '[' . $timestamp . '] '