diff options
| author | chrislu <chris.lu@gmail.com> | 2025-05-22 09:54:31 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2025-05-22 09:54:31 -0700 |
| commit | 0d62be44846354c3c37b857028297edd4b8df17b (patch) | |
| tree | c89320a7d58351030f1b740c7267f56bf0206429 /weed/security/guard.go | |
| parent | d8c574a5ef1a811f9a0d447097d9edfcc0c1d84c (diff) | |
| download | seaweedfs-origin/changing-to-zap.tar.xz seaweedfs-origin/changing-to-zap.zip | |
Diffstat (limited to 'weed/security/guard.go')
| -rw-r--r-- | weed/security/guard.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/security/guard.go b/weed/security/guard.go index f92b10044..a04c403c9 100644 --- a/weed/security/guard.go +++ b/weed/security/guard.go @@ -3,7 +3,7 @@ package security import ( "errors" "fmt" - "github.com/seaweedfs/seaweedfs/weed/glog" + "github.com/seaweedfs/seaweedfs/weed/util/log" "net" "net/http" "strings" @@ -112,7 +112,7 @@ func (g *Guard) checkWhiteList(w http.ResponseWriter, r *http.Request) error { } } - glog.V(0).Infof("Not in whitelist: %s", r.RemoteAddr) + log.V(3).Infof("Not in whitelist: %s", r.RemoteAddr) return fmt.Errorf("Not in whitelist: %s", r.RemoteAddr) } @@ -123,7 +123,7 @@ func (g *Guard) UpdateWhiteList(whiteList []string) { if strings.Contains(ip, "/") { _, cidrnet, err := net.ParseCIDR(ip) if err != nil { - glog.Errorf("Parse CIDR %s in whitelist failed: %v", ip, err) + log.Errorf("Parse CIDR %s in whitelist failed: %v", ip, err) } whiteListCIDR[ip] = cidrnet } else { |
