mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2026-04-09 17:25:20 +08:00
当集群设置不允许记录访问日志时,在网站的访问日志查看页面提醒
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package log
|
||||
|
||||
import (
|
||||
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/actionutils"
|
||||
"github.com/TeaOSLab/EdgeCommon/pkg/rpc/pb"
|
||||
"github.com/iwind/TeaGo/lists"
|
||||
"github.com/iwind/TeaGo/maps"
|
||||
@@ -9,7 +8,7 @@ import (
|
||||
)
|
||||
|
||||
type TodayAction struct {
|
||||
actionutils.ParentAction
|
||||
BaseAction
|
||||
}
|
||||
|
||||
func (this *TodayAction) Init() {
|
||||
@@ -50,6 +49,11 @@ func (this *TodayAction) RunGet(params struct {
|
||||
this.Data["partition"] = params.Partition
|
||||
this.Data["day"] = timeutil.Format("Ymd")
|
||||
|
||||
// 检查集群全局设置
|
||||
if !this.initClusterAccessLogConfig(params.ServerId) {
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := this.RPC().HTTPAccessLogRPC().ListHTTPAccessLogs(this.AdminContext(), &pb.ListHTTPAccessLogsRequest{
|
||||
Partition: params.Partition,
|
||||
RequestId: params.RequestId,
|
||||
|
||||
Reference in New Issue
Block a user