Skip to content

Commit

Permalink
fix log
Browse files Browse the repository at this point in the history
  • Loading branch information
Lawliet-Chan committed Aug 8, 2023
1 parent a337510 commit 28ae869
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions core/tripod/tripod.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ func (t *Tripod) SetInstance(instance interface{}) {
t.name = tripodName
}

for name, _ := range t.writings {
logrus.Debugf("register Writing (%s) into Tripod(%s) \n", name, t.name)
}

for name, _ := range t.readings {
logrus.Debugf("register Reading (%s) into Tripod(%s) \n", name, t.name)
}

t.Instance = instance
}

Expand Down Expand Up @@ -93,15 +101,13 @@ func (t *Tripod) SetWritings(wrs ...Writing) {
for _, wr := range wrs {
name := getFuncName(wr)
t.writings[name] = wr
logrus.Debugf("register Writing(%s) into Tripod(%s) \n", name, t.name)
}
}

func (t *Tripod) SetReadings(readings ...Reading) {
for _, r := range readings {
name := getFuncName(r)
t.readings[name] = r
logrus.Debugf("register Reading(%s) into Tripod(%s) \n", name, t.name)
}
}

Expand Down

0 comments on commit 28ae869

Please sign in to comment.