mirror of
https://github.com/fluffle/goirc
synced 2025-05-15 12:03:21 +00:00
Minimally invasive change to put logging behind a user-replaceable interface.
This could probably be done better, and there are probably awful caveats and hidden gotchas with this approach. I REGRET NOTHING.
This commit is contained in:
parent
06a9cb5d0f
commit
5bb0c8278d
10 changed files with 60 additions and 15 deletions
|
@ -3,7 +3,6 @@ package client
|
|||
import (
|
||||
"code.google.com/p/gomock/gomock"
|
||||
"github.com/fluffle/goirc/state"
|
||||
"github.com/fluffle/golog/logging"
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
|
@ -22,7 +21,6 @@ func setUp(t *testing.T, start ...bool) (*Conn, *testState) {
|
|||
st := state.NewMockTracker(ctrl)
|
||||
nc := MockNetConn(t)
|
||||
c := SimpleClient("test", "test", "Testing IRC")
|
||||
logging.SetLogLevel(logging.LogFatal)
|
||||
|
||||
c.st = st
|
||||
c.sock = nc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue