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)