mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-01 20:04:51 +02:00
fixes #2336 more details in Logger (execution_uuid)
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user