Skip to content

Commit

Permalink
feat(handler): change the default tianmu log path from $mysqlhome/log…
Browse files Browse the repository at this point in the history
…/ to $mysqlhome/data/ stoneatom#609

[summary]
1. "log/tianmu.log" --> "tianmu_engine.log"
2. "trace.log" --> "tianmu_trace.log"
3. "query.log" --> "tianmu_query.log"
  • Loading branch information
hustjieke committed Nov 9, 2022
1 parent 4df2c93 commit 0aab233
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions storage/tianmu/handler/tianmu_handler_com.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0aab233

Please sign in to comment.