Skip to content

Commit

Permalink
wrapper.Log interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Jing-ze committed Dec 23, 2024
1 parent 6895e39 commit 1c3025a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion oauthproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func NewOAuthProxy(opts *options.Options) (*OAuthProxy, error) {
}

func SetLogger(log wrapper.Log) {
util.Logger = &log
util.Logger = log
}

func (p *OAuthProxy) buildServeMux(proxyPrefix string) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/higress-group/proxy-wasm-go-sdk/proxywasm"
)

var Logger *wrapper.DefaultLog
var Logger wrapper.Log

func SendError(errMsg string, rw http.ResponseWriter, status int) {
Logger.Errorf(errMsg)
Expand Down

0 comments on commit 1c3025a

Please sign in to comment.