mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2026-03-20 08:15:45 +08:00
优化访问日志策略测试时的失败提示
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
|
||||
|
||||
//go:build !plus
|
||||
// +build !plus
|
||||
|
||||
package accesslogs
|
||||
|
||||
@@ -10,6 +9,6 @@ import (
|
||||
)
|
||||
|
||||
// 写入日志
|
||||
func (this *StorageManager) Write(policyId int64, accessLogs []*pb.HTTPAccessLog) error {
|
||||
return nil
|
||||
func (this *StorageManager) Write(policyId int64, accessLogs []*pb.HTTPAccessLog) (success bool, failMessage string, err error) {
|
||||
return false, "only works in plus version", nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user