From 0aab23381d86d57e7548a1b985de6b6f3dff3edd Mon Sep 17 00:00:00 2001 From: hustjieke Date: Wed, 9 Nov 2022 11:42:44 +0000 Subject: [PATCH] feat(handler): change the default tianmu log path from $mysqlhome/log/ to $mysqlhome/data/ #609 [summary] 1. "log/tianmu.log" --> "tianmu_engine.log" 2. "trace.log" --> "tianmu_trace.log" 3. "query.log" --> "tianmu_query.log" --- storage/tianmu/handler/tianmu_handler_com.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/storage/tianmu/handler/tianmu_handler_com.cpp b/storage/tianmu/handler/tianmu_handler_com.cpp index c92d14b1c..8a3b68fc4 100644 --- a/storage/tianmu/handler/tianmu_handler_com.cpp +++ b/storage/tianmu/handler/tianmu_handler_com.cpp @@ -211,10 +211,10 @@ int rcbase_init_func(void *p) { ha_rcengine_ = nullptr; try { - std::string log_file = mysql_home_ptr; - log_setup(log_file + "/log/tianmu.log"); - rc_control_.addOutput(new system::FileOut(log_file + "/log/trace.log")); - rc_querylog_.addOutput(new system::FileOut(log_file + "/log/query.log")); + std::string log_file = mysql_real_data_home_ptr; + log_setup(log_file + "/tianmu_engine.log"); + rc_control_.addOutput(new system::FileOut(log_file + "/tianmu_trace.log")); + rc_querylog_.addOutput(new system::FileOut(log_file + "/tianmu_query.log")); struct hostent *hent = nullptr; hent = gethostbyname(glob_hostname); if (hent)