Discard disables the event so Msg(f) won't print it.
()
| 101 | |
| 102 | // Discard disables the event so Msg(f) won't print it. |
| 103 | func (e *Event) Discard() *Event { |
| 104 | if e == nil { |
| 105 | return e |
| 106 | } |
| 107 | e.level = Disabled |
| 108 | return nil |
| 109 | } |
| 110 | |
| 111 | // Msg sends the *Event with msg added as the message field if not empty. |
| 112 | // |
no outgoing calls