dial back the logging
This commit is contained in:
@@ -41,7 +41,7 @@ package main
|
||||
// Long: `Runs a server that can be controlled with RPC and CLI interfaces.`,
|
||||
// Run: func(cmd *cobra.Command, args []string) {
|
||||
//
|
||||
// log2.SetLogLevel(log2.Trace)
|
||||
// log2.SetLogLevel(log2.Debug)
|
||||
//
|
||||
// log.I.Ln("-- ", log2.App, "("+viper.GetString(""+
|
||||
// "network")+") -",
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
)
|
||||
|
||||
func TestBase32(t *testing.T) {
|
||||
log2.SetLogLevel(log2.Trace)
|
||||
log2.SetLogLevel(log2.Debug)
|
||||
for i := 0; i < 10000; i++ {
|
||||
var k *Prv
|
||||
var e error
|
||||
|
||||
@@ -19,7 +19,7 @@ import (
|
||||
)
|
||||
|
||||
func TestDispatcher(t *testing.T) {
|
||||
log2.SetLogLevel(log2.Trace)
|
||||
log2.SetLogLevel(log2.Debug)
|
||||
var e error
|
||||
var l1, l2 *transport.Listener
|
||||
_ = l2
|
||||
|
||||
@@ -15,7 +15,7 @@ import (
|
||||
)
|
||||
|
||||
func TestEngine_Dispatcher(t *testing.T) {
|
||||
log2.SetLogLevel(log2.Trace)
|
||||
log2.SetLogLevel(log2.Debug)
|
||||
var e error
|
||||
_ = e
|
||||
const nTotal = 26
|
||||
|
||||
@@ -25,7 +25,7 @@ import (
|
||||
)
|
||||
|
||||
func TestClient_SendExit(t *testing.T) {
|
||||
log2.SetLogLevel(log2.Trace)
|
||||
log2.SetLogLevel(log2.Debug)
|
||||
var clients []*Engine
|
||||
var e error
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
@@ -122,7 +122,7 @@ out:
|
||||
}
|
||||
|
||||
func TestClient_SendGetBalance(t *testing.T) {
|
||||
log2.SetLogLevel(log2.Trace)
|
||||
log2.SetLogLevel(log2.Debug)
|
||||
var clients []*Engine
|
||||
var e error
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
@@ -264,7 +264,7 @@ func TestEngine_SendIntroQuery(t *testing.T) {
|
||||
log.I.S("hidden service callback", id, ifc, b.ToBytes())
|
||||
return
|
||||
})
|
||||
log2.SetLogLevel(log2.Trace)
|
||||
log2.SetLogLevel(log2.Debug)
|
||||
// Now query everyone for the intro.
|
||||
idPub := crypto.DerivePub(idPrv)
|
||||
peers := clients[1:]
|
||||
@@ -297,7 +297,7 @@ func TestEngine_SendIntroQuery(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestEngine_Message(t *testing.T) {
|
||||
log2.SetLogLevel(log2.Trace)
|
||||
log2.SetLogLevel(log2.Debug)
|
||||
log2.App.Store("")
|
||||
var clients []*Engine
|
||||
var e error
|
||||
@@ -424,7 +424,7 @@ func TestEngine_Message(t *testing.T) {
|
||||
return
|
||||
})
|
||||
wg.Wait()
|
||||
log2.SetLogLevel(log2.Trace)
|
||||
log2.SetLogLevel(log2.Debug)
|
||||
msg, _, _ := tests.GenMessage(256, "hidden service message test")
|
||||
wg.Add(1)
|
||||
counter.Inc()
|
||||
@@ -635,7 +635,7 @@ func TestEngine_Route(t *testing.T) {
|
||||
_ = ini
|
||||
wg.Wait()
|
||||
time.Sleep(time.Second)
|
||||
log2.SetLogLevel(log2.Trace)
|
||||
log2.SetLogLevel(log2.Debug)
|
||||
wg.Add(1)
|
||||
counter.Inc()
|
||||
log.D.Ln("intro", ini.ID, ini.AddrPort.String(), ini.Key.ToBase32Abbreviated(),
|
||||
|
||||
@@ -22,7 +22,7 @@ import (
|
||||
)
|
||||
|
||||
func TestEngine_SendHiddenService(t *testing.T) {
|
||||
log2.SetLogLevel(log2.Trace)
|
||||
log2.SetLogLevel(log2.Debug)
|
||||
log2.App.Store("")
|
||||
var clients []*Engine
|
||||
var e error
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
)
|
||||
|
||||
func TestOnionSkins_Balance(t *testing.T) {
|
||||
log2.SetLogLevel(log2.Trace)
|
||||
log2.SetLogLevel(log2.Debug)
|
||||
id := nonce.NewID()
|
||||
sats := lnwire.MilliSatoshi(10000)
|
||||
on := Skins{}.
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
)
|
||||
|
||||
func TestOnionSkins_Confirmation(t *testing.T) {
|
||||
log2.SetLogLevel(log2.Trace)
|
||||
log2.SetLogLevel(log2.Debug)
|
||||
id := nonce.NewID()
|
||||
var load byte = 128
|
||||
on := Skins{}.
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
)
|
||||
|
||||
func TestOnionSkins_SimpleCrypt(t *testing.T) {
|
||||
log2.SetLogLevel(log2.Trace)
|
||||
log2.SetLogLevel(log2.Debug)
|
||||
var e error
|
||||
n := nonce.NewID()
|
||||
n1 := nonce.New()
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
)
|
||||
|
||||
func TestOnionSkins_Delay(t *testing.T) {
|
||||
log2.SetLogLevel(log2.Trace)
|
||||
log2.SetLogLevel(log2.Debug)
|
||||
dur := time.Second
|
||||
on := Skins{}.
|
||||
Delay(dur).
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
)
|
||||
|
||||
func TestOnionSkins_Intro(t *testing.T) {
|
||||
log2.SetLogLevel(log2.Trace)
|
||||
log2.SetLogLevel(log2.Debug)
|
||||
var e error
|
||||
pr, ks, _ := crypto.NewSigner()
|
||||
id := nonce.NewID()
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
)
|
||||
|
||||
func TestOnionSkins_IntroQuery(t *testing.T) {
|
||||
log2.SetLogLevel(log2.Trace)
|
||||
log2.SetLogLevel(log2.Debug)
|
||||
log2.App.Store("")
|
||||
var e error
|
||||
prvs, pubs := crypto.GetCipherSet(t)
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
)
|
||||
|
||||
func TestOnionSkins_Session(t *testing.T) {
|
||||
log2.SetLogLevel(log2.Trace)
|
||||
log2.SetLogLevel(log2.Debug)
|
||||
sess := NewSessionKeys(1)
|
||||
on := Skins{}.
|
||||
Session(sess).
|
||||
|
||||
@@ -13,7 +13,7 @@ import (
|
||||
)
|
||||
|
||||
func TestSplitJoin(t *testing.T) {
|
||||
log2.SetLogLevel(log2.Trace)
|
||||
log2.SetLogLevel(log2.Debug)
|
||||
msgSize := 1 << 19
|
||||
segSize := 1382
|
||||
var e error
|
||||
@@ -136,7 +136,7 @@ func TestRemovePacket(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestSplitJoinFEC(t *testing.T) {
|
||||
log2.SetLogLevel(log2.Trace)
|
||||
log2.SetLogLevel(log2.Debug)
|
||||
msgSize := 1 << 18
|
||||
segSize := 1382
|
||||
var e error
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
)
|
||||
|
||||
func TestNewListener(t *testing.T) {
|
||||
log2.SetLogLevel(log2.Trace)
|
||||
log2.SetLogLevel(log2.Debug)
|
||||
var e error
|
||||
var l1, l2 *Listener
|
||||
_ = l2
|
||||
|
||||
@@ -4,14 +4,14 @@ import (
|
||||
"os"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
|
||||
"git-indra.lan/indra-labs/indra/pkg/proc/cmds"
|
||||
log2 "git-indra.lan/indra-labs/indra/pkg/proc/log"
|
||||
)
|
||||
|
||||
func TestNew(t *testing.T) {
|
||||
log2.SetLogLevel(log2.Trace)
|
||||
|
||||
log2.SetLogLevel(log2.Debug)
|
||||
|
||||
args1 := "/random/path/to/server_binary --cafile ~/some/cafile --LC=cn node -addrindex --BD 48h30s"
|
||||
args1s := strings.Split(args1, " ")
|
||||
var a *App
|
||||
@@ -24,8 +24,8 @@ func TestNew(t *testing.T) {
|
||||
}
|
||||
if e = os.RemoveAll(a.Command.Configs["DataDir"].
|
||||
Expanded()); check(e) {
|
||||
|
||||
|
||||
t.FailNow()
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -3,13 +3,13 @@ package cmds
|
||||
import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
|
||||
log2 "git-indra.lan/indra-labs/indra/pkg/proc/log"
|
||||
)
|
||||
|
||||
func TestCommand_ParseCLIArgs(t *testing.T) {
|
||||
log2.SetLogLevel(log2.Trace)
|
||||
|
||||
log2.SetLogLevel(log2.Debug)
|
||||
|
||||
ec := GetExampleCommands()
|
||||
o, _ := Init(ec, nil)
|
||||
args6 := "/random/path/to/server_binary --cafile ~/some/cafile --LC=cn " +
|
||||
|
||||
Reference in New Issue
Block a user