From 9079b1d5a4545b428cb443033e8387e2580711da Mon Sep 17 00:00:00 2001 From: aoiasd <45024769+aoiasd@users.noreply.github.com> Date: Fri, 9 Dec 2022 18:09:19 +0800 Subject: [PATCH] Rename default accesslog dir name (#21086) Signed-off-by: aoiasd Signed-off-by: aoiasd --- configs/milvus.yaml | 2 +- internal/proxy/accesslog/log_writer.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configs/milvus.yaml b/configs/milvus.yaml index df1df8c0f8..26afd315c9 100644 --- a/configs/milvus.yaml +++ b/configs/milvus.yaml @@ -164,7 +164,7 @@ proxy: # please adjust in embedded Milvus: false ginLogging: true # Whether to produce gin logs. accessLog: - localPath: /tmp/accesslog + localPath: /tmp/milvus_accesslog filename: milvus_access_log.log grpc: serverMaxRecvSize: 67108864 # 64M diff --git a/internal/proxy/accesslog/log_writer.go b/internal/proxy/accesslog/log_writer.go index 53b5f6d5cf..b969454715 100644 --- a/internal/proxy/accesslog/log_writer.go +++ b/internal/proxy/accesslog/log_writer.go @@ -295,7 +295,7 @@ func (l *RotateLogger) max() int64 { func (l *RotateLogger) dir() string { if l.localPath == "" { - l.localPath = path.Join(os.TempDir(), "accesslog") + l.localPath = path.Join(os.TempDir(), "milvus_accesslog") } return l.localPath }