Commit 0d38750d authored by Marten Seemann's avatar Marten Seemann
Browse files

use the new DisableLogging mdns option, don't turn off logging globally

parent 1f1aca1c
...@@ -4,8 +4,6 @@ import ( ...@@ -4,8 +4,6 @@ import (
"context" "context"
"errors" "errors"
"io" "io"
"io/ioutil"
golog "log"
"net" "net"
"sync" "sync"
"time" "time"
...@@ -64,8 +62,8 @@ func getDialableListenAddrs(ph host.Host) ([]*net.TCPAddr, error) { ...@@ -64,8 +62,8 @@ func getDialableListenAddrs(ph host.Host) ([]*net.TCPAddr, error) {
func NewMdnsService(ctx context.Context, peerhost host.Host, interval time.Duration, serviceTag string) (Service, error) { func NewMdnsService(ctx context.Context, peerhost host.Host, interval time.Duration, serviceTag string) (Service, error) {
// TODO: dont let mdns use logging... // don't let mdns use logging...
golog.SetOutput(ioutil.Discard) mdns.DisableLogging = true
var ipaddrs []net.IP var ipaddrs []net.IP
port := 4001 port := 4001
......
...@@ -14,9 +14,9 @@ ...@@ -14,9 +14,9 @@
"version": "0.0.0" "version": "0.0.0"
}, },
{ {
"hash": "QmNeRzgrSpwbMU7VKLRyfvbqf1nRrAiQ7fEXaBxWGT5Ygr", "hash": "QmekaTKpWkYGcn4ZEC5PwJDRCQHapwugmmG86g2Xpz5GBH",
"name": "mdns", "name": "mdns",
"version": "0.1.3" "version": "0.2.0"
}, },
{ {
"hash": "QmPdKqUcHGFdeSpvjVoaTRPPstGif9GBZb5Q56RVw9o69A", "hash": "QmPdKqUcHGFdeSpvjVoaTRPPstGif9GBZb5Q56RVw9o69A",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment