diff --git a/agent/app/service/file.go b/agent/app/service/file.go index d9803fb6083f..50882ec16079 100644 --- a/agent/app/service/file.go +++ b/agent/app/service/file.go @@ -658,6 +658,9 @@ func (f *FileService) ReadLogByLine(req request.FileReadByLineReq) (*response.Fi configPath = pathSet.Value } logFilePath, _ = ini_conf.GetIniValue(configPath, "supervisord", "logfile") + case constant.Supervisor: + logDir := path.Join(global.Dir.DataDir, "tools", "supervisord", "log") + logFilePath = path.Join(logDir, req.Name) } file, err := os.Open(logFilePath) diff --git a/frontend/src/views/toolbox/supervisor/file/index.vue b/frontend/src/views/toolbox/supervisor/file/index.vue index 6bb7a66b22c1..bc5f07eac75c 100644 --- a/frontend/src/views/toolbox/supervisor/file/index.vue +++ b/frontend/src/views/toolbox/supervisor/file/index.vue @@ -1,25 +1,12 @@ - - - - - - - {{ $t('commons.button.watch') }} - - - {{ $t('commons.button.clean') }} - - - @@ -28,19 +15,17 @@ {{ $t('commons.button.cancel') }} - + {{ $t('commons.button.confirm') }} - + +