misc: `iotuil` deprecation
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
This commit is contained in:
parent
d56d0a7ad7
commit
0a27f6ac90
|
@ -23,7 +23,6 @@ import (
|
|||
"crypto/x509"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"math/rand"
|
||||
"net"
|
||||
|
@ -174,7 +173,7 @@ func setupRegistryServer(ctx context.Context, workspaceDir string, opts registry
|
|||
server.registryHost = fmt.Sprintf("example.com:%d", port)
|
||||
// Disable DNS server logging as it is extremely chatty.
|
||||
dnsLog := log.Default()
|
||||
dnsLog.SetOutput(ioutil.Discard)
|
||||
dnsLog.SetOutput(io.Discard)
|
||||
server.dnsServer, err = mockdns.NewServerWithLogger(map[string]mockdns.Zone{
|
||||
"example.com.": {
|
||||
A: []string{"127.0.0.1"},
|
||||
|
|
Loading…
Reference in New Issue