Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit 168a276

Browse files
authored
Merge pull request #493 from gao-feng/log
fix debug message
2 parents 0e800a0 + e3fa7ce commit 168a276

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

daemon/pod/networks.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ func (inf *Interface) Log(level hlog.LogLevel, args ...interface{}) {
3434
}
3535

3636
func (inf *Interface) prepare() error {
37-
38-
defer inf.Log(DEBUG, "prepare inf info: %#v", inf.descript)
37+
defer func() {
38+
inf.Log(DEBUG, "prepare inf info: %#v", inf.descript)
39+
}()
3940

4041
if inf.spec.Ip == "" && inf.spec.Bridge != "" {
4142
err := fmt.Errorf("if configured a bridge, must specify the IP address")

0 commit comments

Comments
 (0)