Remove -debug option, superceded by --log-level
This commit is contained in:
1 parent
910b57731d
commit
ff2d7451e2
20 files changed
+52
-57
No files matched your search
@@ -9,7 +9,7 @@ import (
|
||||
)
|
||||
|
||||
func TestAddrs(t *testing.T) {
|
||||
InitDefaultLogging(testing.Verbose())
|
||||
EnableDebugLogging(testing.Verbose())
|
||||
Log.Infoln("TestAddrs starting")
|
||||
|
||||
ip, err := addrToIPv4("10.13.12.11")
|
||||
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
|
||||
// Check that the cache keeps its intended capacity constant
|
||||
func TestCacheLength(t *testing.T) {
|
||||
InitDefaultLogging(testing.Verbose())
|
||||
EnableDebugLogging(testing.Verbose())
|
||||
Log.Infoln("TestCacheLength starting")
|
||||
|
||||
const cacheLen = 128
|
||||
@@ -55,7 +55,7 @@ func TestCacheLength(t *testing.T) {
|
||||
|
||||
// Check that the cache entries are ok
|
||||
func TestCacheEntries(t *testing.T) {
|
||||
InitDefaultLogging(testing.Verbose())
|
||||
EnableDebugLogging(testing.Verbose())
|
||||
Log.Infoln("TestCacheEntries starting")
|
||||
|
||||
Log.Infoln("Checking cache consistency")
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
|
||||
// Check that we can prune an answer
|
||||
func TestPrune(t *testing.T) {
|
||||
InitDefaultLogging(testing.Verbose())
|
||||
EnableDebugLogging(testing.Verbose())
|
||||
Log.Infoln("TestPrune starting")
|
||||
|
||||
questionMsg := new(dns.Msg)
|
||||
|
||||
@@ -78,7 +78,7 @@ func RunLocalMulticastServer() (*dns.Server, error) {
|
||||
}
|
||||
|
||||
func setup(t *testing.T) (*MDNSClient, *dns.Server, error) {
|
||||
InitDefaultLogging(testing.Verbose())
|
||||
EnableDebugLogging(testing.Verbose())
|
||||
|
||||
server, err := RunLocalMulticastServer()
|
||||
if err != nil {
|
||||
|
||||
@@ -17,7 +17,7 @@ func TestServerSimpleQuery(t *testing.T) {
|
||||
testInAddr1 = "10.20.20.10.in-addr.arpa."
|
||||
)
|
||||
|
||||
InitDefaultLogging(testing.Verbose())
|
||||
EnableDebugLogging(testing.Verbose())
|
||||
Log.Infoln("TestServerSimpleQuery starting")
|
||||
|
||||
mzone := newMockedZoneWithRecords([]ZoneRecord{testRecord1, testRecord2})
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
|
||||
// Check that we can use a regular mDNS server with a regular mDNS client
|
||||
func TestClientServerSimpleQuery(t *testing.T) {
|
||||
InitDefaultLogging(testing.Verbose())
|
||||
EnableDebugLogging(testing.Verbose())
|
||||
|
||||
testRecord1 := Record{"test.weave.local.", net.ParseIP("10.2.2.1"), 0, 0, 0}
|
||||
testInAddr1 := "1.2.2.10.in-addr.arpa."
|
||||
@@ -86,7 +86,7 @@ func TestClientServerSimpleQuery(t *testing.T) {
|
||||
|
||||
// Check that we can use a use "insistent" queries
|
||||
func TestClientServerInsistentQuery(t *testing.T) {
|
||||
InitDefaultLogging(testing.Verbose())
|
||||
EnableDebugLogging(testing.Verbose())
|
||||
|
||||
testRecord1 := Record{"test.weave.local.", net.ParseIP("10.2.2.1"), 0, 0, 0}
|
||||
testInAddr1 := "1.2.2.10.in-addr.arpa."
|
||||
|
||||
@@ -19,7 +19,7 @@ func TestServerDbCacheInvalidation(t *testing.T) {
|
||||
testName2 = "second.weave.local."
|
||||
)
|
||||
|
||||
InitDefaultLogging(testing.Verbose())
|
||||
EnableDebugLogging(testing.Verbose())
|
||||
Log.Infoln("TestServerDbCacheInvalidation starting")
|
||||
|
||||
clk := newMockedClock()
|
||||
@@ -177,7 +177,7 @@ func TestServerCacheExpiration(t *testing.T) {
|
||||
negativeLocalTTL = 10
|
||||
)
|
||||
|
||||
InitDefaultLogging(testing.Verbose())
|
||||
EnableDebugLogging(testing.Verbose())
|
||||
Log.Infoln("TestServerCacheExpiration starting")
|
||||
|
||||
clk := newMockedClock()
|
||||
@@ -265,7 +265,7 @@ func TestServerCacheRefresh(t *testing.T) {
|
||||
refreshInterval = int(DefaultLocalTTL) / 3
|
||||
)
|
||||
|
||||
InitDefaultLogging(testing.Verbose())
|
||||
EnableDebugLogging(testing.Verbose())
|
||||
Log.Infoln("TestServerCacheRefresh starting")
|
||||
clk := newMockedClock()
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ func TestUDPDNSServer(t *testing.T) {
|
||||
)
|
||||
testCIDR1 := testAddr1 + "/24"
|
||||
|
||||
InitDefaultLogging(testing.Verbose())
|
||||
EnableDebugLogging(testing.Verbose())
|
||||
Log.Infoln("TestUDPDNSServer starting")
|
||||
|
||||
zone, err := NewZoneDb(ZoneConfig{})
|
||||
@@ -137,7 +137,7 @@ func TestTCPDNSServer(t *testing.T) {
|
||||
nonLocalName = "weave.works."
|
||||
)
|
||||
|
||||
InitDefaultLogging(testing.Verbose())
|
||||
EnableDebugLogging(testing.Verbose())
|
||||
Log.Infoln("TestTCPDNSServer starting")
|
||||
|
||||
zone, err := NewZoneDb(ZoneConfig{})
|
||||
|
||||
@@ -23,7 +23,7 @@ func TestZoneRefresh(t *testing.T) {
|
||||
addr4 = "10.2.8.7"
|
||||
)
|
||||
|
||||
InitDefaultLogging(testing.Verbose())
|
||||
EnableDebugLogging(testing.Verbose())
|
||||
Log.Infoln("TestZoneRefresh starting")
|
||||
|
||||
clk := newMockedClock()
|
||||
|
||||
@@ -20,7 +20,7 @@ func TestZone(t *testing.T) {
|
||||
revName1Addr1 = "1.2.9.10.in-addr.arpa."
|
||||
)
|
||||
|
||||
InitDefaultLogging(testing.Verbose())
|
||||
EnableDebugLogging(testing.Verbose())
|
||||
|
||||
zone, err := NewZoneDb(ZoneConfig{})
|
||||
require.NoError(t, err)
|
||||
@@ -136,7 +136,7 @@ func TestDeleteRecords(t *testing.T) {
|
||||
addr2 = "10.2.7.8/24"
|
||||
)
|
||||
|
||||
InitDefaultLogging(testing.Verbose())
|
||||
EnableDebugLogging(testing.Verbose())
|
||||
|
||||
zone, err := NewZoneDb(ZoneConfig{})
|
||||
require.NoError(t, err)
|
||||
|
||||
Reference in new issue
Block a user