mirror of
https://github.com/alibaba/higress.git
synced 2026-03-08 02:30:56 +08:00
Fix log import (#1957)
This commit is contained in:
@@ -24,7 +24,6 @@ import (
|
||||
"api-workflow/utils"
|
||||
. "api-workflow/workflow"
|
||||
|
||||
"github.com/alibaba/higress/plugins/wasm-go/pkg/log"
|
||||
"github.com/alibaba/higress/plugins/wasm-go/pkg/wrapper"
|
||||
"github.com/higress-group/proxy-wasm-go-sdk/proxywasm"
|
||||
"github.com/higress-group/proxy-wasm-go-sdk/proxywasm/types"
|
||||
@@ -45,7 +44,7 @@ func main() {
|
||||
)
|
||||
}
|
||||
|
||||
func parseConfig(json gjson.Result, c *PluginConfig, log log.Log) error {
|
||||
func parseConfig(json gjson.Result, c *PluginConfig, log wrapper.Log) error {
|
||||
|
||||
edges := make([]Edge, 0)
|
||||
nodes := make(map[string]Node)
|
||||
@@ -175,7 +174,7 @@ func initWorkflowExecStatus(config *PluginConfig) (map[string]int, error) {
|
||||
return result, nil
|
||||
}
|
||||
|
||||
func onHttpRequestBody(ctx wrapper.HttpContext, config PluginConfig, body []byte, log log.Log) types.Action {
|
||||
func onHttpRequestBody(ctx wrapper.HttpContext, config PluginConfig, body []byte, log wrapper.Log) types.Action {
|
||||
|
||||
initHeader := make([][2]string, 0)
|
||||
// 初始化运行状态
|
||||
@@ -200,7 +199,7 @@ func onHttpRequestBody(ctx wrapper.HttpContext, config PluginConfig, body []byte
|
||||
}
|
||||
|
||||
// 放入符合条件的edge
|
||||
func recursive(edge Edge, headers [][2]string, body []byte, depth uint32, config PluginConfig, log log.Log, ctx wrapper.HttpContext) error {
|
||||
func recursive(edge Edge, headers [][2]string, body []byte, depth uint32, config PluginConfig, log wrapper.Log, ctx wrapper.HttpContext) error {
|
||||
|
||||
var err error
|
||||
// 防止递归次数太多
|
||||
|
||||
Reference in New Issue
Block a user