Skip to content

Commit 120fbc4

Browse files
committed
chore: 注释
1 parent 3bed640 commit 120fbc4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

wlog/log.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ type SugaredLogger struct {
2929
zap.SugaredLogger
3030
}
3131

32+
// 打印错误,true=有错误
3233
func (s *SugaredLogger) IfError(e interface{}) bool {
3334
if e != nil {
3435
s.Error(e)

0 commit comments

Comments
 (0)