Remove -debug option, superceded by --log-level

This commit is contained in:
Bryan Boreham authored and Matthias Radestock committed 2015-07-04 03:27:07 +01:00
1 parent 910b57731d
commit ff2d7451e2
20 files changed
+52 -57

No files matched your search

+1 -1
View File
@@ -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")
+2 -2
View File
@@ -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")
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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 {
+1 -1
View File
@@ -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})
+2 -2
View File
@@ -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."
+3 -3
View File
@@ -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()
+2 -2
View File
@@ -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{})
+1 -1
View File
@@ -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()
+2 -2
View File
@@ -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)