Skip to content

Commit

Permalink
Update log.go (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
4781121 committed Jun 22, 2023
1 parent f536b51 commit d2677a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion log.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func AddHandler(h Handler, levels ...Level) {
rw.Lock()
defer rw.Unlock()
if defaultHandler != nil {
removeHandler(h)
removeHandler(defaultHandler)
defaultHandler = nil
}
for _, level := range levels {
Expand Down

0 comments on commit d2677a2

Please sign in to comment.