fixes #2336 more details in Logger (execution_uuid)

This commit is contained in:
plegall
2025-03-01 14:20:11 +01:00
parent daef1ed375
commit 789c062837
3 changed files with 9 additions and 2 deletions
+3 -1
View File
@@ -340,11 +340,13 @@ class Logger
*/
private function formatMessage($level, $message, $cat, $context)
{
global $page;
if (!empty($context))
{
$message.= "\n" . $this->indent($this->contextToString($context));
}
$line = "[" . $this->getTimestamp() . "]\t[" . self::levelToCode($level) . "]\t";
$line = "[" . $this->getTimestamp() . '][exec='.($page['execution_uuid']??'unkonwn')."]\t[" . self::levelToCode($level) . "]\t";
if ($cat != null)
{
$line.= "[" . $cat . "]\t";
+2
View File
@@ -109,6 +109,8 @@ include(PHPWG_ROOT_PATH . 'include/template.class.php');
include(PHPWG_ROOT_PATH . 'include/cache.class.php');
include(PHPWG_ROOT_PATH . 'include/Logger.class.php');
$page['execution_uuid'] = generate_key(10);
$persistent_cache = new PersistentFileCache();
// Database connection