From b58236774b44593b28edf836c7510fe788e264a8 Mon Sep 17 00:00:00 2001 From: lucklove Date: Tue, 22 Jun 2021 13:51:03 +0800 Subject: [PATCH] Fix the issue that slow log position not change with LogDir Fix https://github.com/pingcap/tiup/issues/1440 --- embed/templates/scripts/run_tidb.sh.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embed/templates/scripts/run_tidb.sh.tpl b/embed/templates/scripts/run_tidb.sh.tpl index 84ff07a61a..7015db78c9 100644 --- a/embed/templates/scripts/run_tidb.sh.tpl +++ b/embed/templates/scripts/run_tidb.sh.tpl @@ -28,6 +28,6 @@ exec env GODEBUG=madvdontneed=1 bin/tidb-server \ --advertise-address="{{.AdvertiseAddr}}" \ --store="tikv" \ --path="{{template "PDList" .Endpoints}}" \ - --log-slow-query="log/tidb_slow_query.log" \ + --log-slow-query="{{.LogDir}}/tidb_slow_query.log" \ --config=conf/tidb.toml \ --log-file="{{.LogDir}}/tidb.log" 2>> "{{.LogDir}}/tidb_stderr.log"