diff --git a/classes/Components/Logger/Handler/DatabaseLogHandler.php b/classes/Components/Logger/Handler/DatabaseLogHandler.php index 1b74c1e4..692f9e29 100644 --- a/classes/Components/Logger/Handler/DatabaseLogHandler.php +++ b/classes/Components/Logger/Handler/DatabaseLogHandler.php @@ -66,7 +66,7 @@ final class DatabaseLogHandler extends AbstractLogHandler $sql = 'INSERT INTO `log` (`log_time`, `level`, `message`, `class`, `method`, `line`, `origin_type`, `origin_detail`, `dump`) VALUES - (NOW(), :level, :message, :class, :method, :line, :origin_type, :origin_detail, :dump)'; + (NOW(3), :level, :message, :class, :method, :line, :origin_type, :origin_detail, :dump)'; $this->db->perform($sql, $values); } } diff --git a/upgrade/data/db_schema.json b/upgrade/data/db_schema.json index fbfab4fd..2feed475 100644 --- a/upgrade/data/db_schema.json +++ b/upgrade/data/db_schema.json @@ -56922,7 +56922,7 @@ }, { "Field": "log_time", - "Type": "datetime", + "Type": "datetime(3)", "Collation": null, "Null": "YES", "Key": "", diff --git a/www/pages/log.php b/www/pages/log.php index 46d18563..6de8da11 100644 --- a/www/pages/log.php +++ b/www/pages/log.php @@ -82,7 +82,7 @@ class Log 'Nachricht', '', ]; - $width = ['1%', '4%', '8%', '4%', '10%', '15%', '20%', '10%', '5%', '40%']; + $width = ['1%', '4%', '9%', '4%', '10%', '15%', '20%', '10%', '5%', '40%']; $findcols = [ 'open', 'l.id', @@ -116,7 +116,7 @@ class Log $sql = "SELECT l.id, '' AS `open`, l.id, - DATE_FORMAT(l.log_time,'%d.%m.%Y %H:%i:%s') AS `log_time`, + SUBSTRING(DATE_FORMAT(l.log_time,'%d.%m.%Y %H:%i:%s %f'),1,23) AS `log_time`, l.level, l.origin_type, l.origin_detail, l.class, l.method, l.line, l.message, l.id FROM `log` AS `l`"; $fastcount = 'SELECT COUNT(l.id) FROM `log` AS `l`';