mirror of
https://github.com/fluffle/goirc
synced 2025-07-04 04:19:23 +00:00
Make mock loggers log everything to avoid stupids.
This commit is contained in:
parent
2f5d4d86a5
commit
97783df463
2 changed files with 3 additions and 1 deletions
|
@ -36,7 +36,8 @@ func NewMock() (*logger, writerMap) {
|
|||
for lv, w := range wMap {
|
||||
logMap[lv] = makeLogger(w)
|
||||
}
|
||||
return New(logMap, Error, false), wMap
|
||||
// Set the default log level high enough that everything will get logged
|
||||
return New(logMap, (1 << 31) - 1, false), wMap
|
||||
}
|
||||
|
||||
func (m writerMap) CheckNothingWritten(t *testing.T) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue