mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-10-12 13:03:45 +08:00
fix g.Log()的使用
This commit is contained in:
@@ -174,7 +174,7 @@ func GetPublicIP(ctx context.Context) (ip string, err error) {
|
||||
}
|
||||
|
||||
if data == nil {
|
||||
g.Log().Infof(ctx, "publicIP address Parsing failure, check the network and firewall blocking.")
|
||||
g.Log().Info(ctx, "publicIP address Parsing failure, check the network and firewall blocking.")
|
||||
return "0.0.0.0", nil
|
||||
}
|
||||
return data.Ip, nil
|
||||
|
Reference in New Issue
Block a user