controlclient: handle nil Logf option

pull/40/head
David Crawshaw 5 years ago committed by David Crawshaw
parent ea11d58e96
commit e180bd67e6

@ -142,6 +142,9 @@ func NewNoStart(opts Options) (*Client, error) {
if err != nil {
return nil, err
}
if opts.Logf == nil {
opts.Logf = func(fmt string, args ...interface{}) {}
}
c := &Client{
direct: direct,
timeNow: opts.TimeNow,

Loading…
Cancel
Save