• Brian Tiger Chow's avatar
    log(dht): remove lots of query debug logs · 4e858580
    Brian Tiger Chow authored
    the debug log is flooded with pages upon pages of...
    
    we've gotta be more judicious with our use of console logs. i'm sure
    there's interesting actionable information in here. let's use the
    console logging more like a sniper rifle and less like birdshot.
    
    feel free to revert if there are specific critical statements in this
    changeset
    
    03:05:24.096 DEBUG        dht: dht(<peer.ID
    QmWGN3>).Query(QmXvrpUZXCYaCkf1jfaQTJASS91xd47Yih2rnVC5YbFAAK).Run(3)
    queryPeer(<peer.ID QmSoLp>) QUERY worker for: <peer.ID QmSoLp> - not
    found, and no closer peers. prefixlog.go:107
    03:05:24.096 DEBUG        dht: dht(<peer.ID
    QmWGN3>).Query(QmXvrpUZXCYaCkf1jfaQTJASS91xd47Yih2rnVC5YbFAAK).Run(3)
    queryPeer(<peer.ID QmSoLp>) completed prefixlog.go:107
    03:05:24.096 DEBUG        dht: dht(<peer.ID
    QmWGN3>).Query(QmXvrpUZXCYaCkf1jfaQTJASS91xd47Yih2rnVC5YbFAAK).Run(3)
    queryPeer(<peer.ID QmSoLp>) finished prefixlog.go:107
    03:05:24.096 DEBUG        dht: dht(<peer.ID QmWGN3>)
    FindProviders(QmXvrpUZXCYaCkf1jfaQTJASS91xd47Yih2rnVC5YbFAAK)
    Query(<peer.ID QmSoLn>) 0 provider entries prefixlog.go:107
    03:05:24.096 DEBUG        dht: dht(<peer.ID QmWGN3>)
    FindProviders(QmXvrpUZXCYaCkf1jfaQTJASS91xd47Yih2rnVC5YbFAAK)
    Query(<peer.ID QmSoLn>) 0 provider entries decoded prefixlog.go:107
    03:05:24.096 DEBUG        dht: dht(<peer.ID QmWGN3>)
    FindProviders(QmXvrpUZXCYaCkf1jfaQTJASS91xd47Yih2rnVC5YbFAAK)
    Query(<peer.ID QmSoLn>) got closer peers: 0 [] prefixlog.go:107
    03:05:24.097 DEBUG        dht: dht(<peer.ID QmWGN3>)
    FindProviders(QmXvrpUZXCYaCkf1jfaQTJASS91xd47Yih2rnVC5YbFAAK)
    Query(<peer.ID QmSoLn>) end prefixlog.go:107
    03:05:24.097 DEBUG        dht: dht(<peer.ID
    QmWGN3>).Query(QmXvrpUZXCYaCkf1jfaQTJASS91xd47Yih2rnVC5YbFAAK).Run(3)
    queryPeer(<peer.ID QmSoLn>) query finished prefixlog.go:107
    03:05:24.097 DEBUG        dht: dht(<peer.ID
    QmWGN3>).Query(QmXvrpUZXCYaCkf1jfaQTJASS91xd47Yih2rnVC5YbFAAK).Run(3)
    queryPeer(<peer.ID QmSoLn>) QUERY worker for: <peer.ID QmSoLn> - not
    found, and no closer peers. prefixlog.go:107
    03:05:24.097 DEBUG        dht: dht(<peer.ID
    QmWGN3>).Query(QmXvrpUZXCYaCkf1jfaQTJASS91xd47Yih2rnVC5YbFAAK).Run(3)
    queryPeer(<peer.ID QmSoLn>) completed prefixlog.go:107
    03:05:24.097 DEBUG        dht: dht(<peer.ID
    QmWGN3>).Query(QmXvrpUZXCYaCkf1jfaQTJASS91xd47Yih2rnVC5YbFAAK).Run(3)
    queryPeer(<peer.ID QmSoLn>) finished prefixlog.go:107
    03:05:24.097 DEBUG        dht: dht(<peer.ID
    QmWGN3>).Query(QmXvrpUZXCYaCkf1jfaQTJASS91xd47Yih2rnVC5YbFAAK).Run(3)
    all peers ended prefixlog.go:107
    03:05:24.097 DEBUG        dht: dht(<peer.ID
    QmWGN3>).Query(QmXvrpUZXCYaCkf1jfaQTJASS91xd47Yih2rnVC5YbFAAK).Run(3)
    spawnWorkers end prefixlog.go:107
    03:05:24.097 DEBUG        dht: dht(<peer.ID
    QmWGN3>).Query(QmXvrpUZXCYaCkf1jfaQTJASS91xd47Yih2rnVC5YbFAAK).Run(3)
    failure: %s routing: not found prefixlog.go:107
    03:05:24.097 DEBUG        dht: dht(<peer.ID
    QmWGN3>).Query(QmXvrpUZXCYaCkf1jfaQTJASS91xd47Yih2rnVC5YbFAAK).Run(3)
    end prefixlog.go:107
    4e858580
query.go 6.81 KB