From 91f34ea40ce9477296a2fa627ace41268db50f89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=92=E5=AE=87=E5=B0=91=E5=B9=B4?= <39233436+hengboy@users.noreply.github.com> Date: Sun, 24 Apr 2022 12:53:32 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=96=B0=E5=A2=9E=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E6=97=B6=E4=B8=80=E5=B9=B6=E5=86=99=E5=85=A5?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../logging/admin/storage/LoggingDataSourceStorage.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/minbox-logging-admin/src/main/java/org/minbox/framework/logging/admin/storage/LoggingDataSourceStorage.java b/minbox-logging-admin/src/main/java/org/minbox/framework/logging/admin/storage/LoggingDataSourceStorage.java index 9a8c85a..61e95f0 100644 --- a/minbox-logging-admin/src/main/java/org/minbox/framework/logging/admin/storage/LoggingDataSourceStorage.java +++ b/minbox-logging-admin/src/main/java/org/minbox/framework/logging/admin/storage/LoggingDataSourceStorage.java @@ -76,7 +76,7 @@ public class LoggingDataSourceStorage implements LoggingStorage { private static final String SQL_INSERT_LOG = "insert into logging_request_logs (lrl_id, lrl_service_detail_id, lrl_trace_id, lrl_parent_span_id, lrl_span_id,\n" + " lrl_start_time, lrl_end_time, lrl_http_status, lrl_request_body, lrl_request_headers,\n" + " lrl_request_ip, lrl_request_method, lrl_request_uri, lrl_response_body,\n" + - " lrl_response_headers, lrl_time_consuming,lrl_request_params,lrl_exception_stack) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?);"; + " lrl_response_headers, lrl_time_consuming,lrl_request_params,lrl_exception_stack,lrl_create_time) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?);"; /** * Insert Global Log SQL */ @@ -158,6 +158,7 @@ public String insertLog(String serviceDetailId, MinBoxLog log) throws SQLExcepti ps.setLong(16, log.getTimeConsuming()); ps.setString(17, log.getRequestParam()); ps.setString(18, log.getExceptionStack()); + ps.setTimestamp(19, Timestamp.valueOf(log.getCreateTime())); ps.executeUpdate(); ps.close(); closeConnection(connection);