From ca1555bd8e7a1ffb5fe63e9f2442c90ab4ef9bbb Mon Sep 17 00:00:00 2001
From: "Richard T. Carback III" <rick.carback@gmail.com>
Date: Tue, 20 Oct 2020 21:28:02 +0000
Subject: [PATCH] Use Trace logging

---
 bindings/client.go | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/bindings/client.go b/bindings/client.go
index b17c2ec76..2d71a5af7 100644
--- a/bindings/client.go
+++ b/bindings/client.go
@@ -9,6 +9,7 @@ package bindings
 import (
 	"errors"
 	"github.com/spf13/jwalterweatherman"
+	jww "github.com/spf13/jwalterweatherman"
 	"gitlab.com/elixxir/client/api"
 	"gitlab.com/elixxir/client/interfaces/bind"
 	"gitlab.com/elixxir/client/interfaces/contact"
@@ -61,6 +62,9 @@ func NewPrecannedClient(precannedID int, network, storageDir string, password []
 // starts subprocesses to perform network operations.
 func Login(storageDir string, password []byte) (*Client, error) {
 	// TODO: This should wrap the bindings ClientImpl, when available.
+	jww.SetStdoutThreshold(jww.LevelTrace)
+	jww.SetLogThreshold(jww.LevelTrace)
+
 	client, err := api.Login(storageDir, password)
 	if err != nil {
 		return nil, err
@@ -68,13 +72,11 @@ func Login(storageDir string, password []byte) (*Client, error) {
 	return &Client{*client}, nil
 }
 
-
 //Unmarshals a marshaled contact object
 func UnmarshalContact(b []byte) (bind.Contact, error) {
 	return contact.Unmarshal(b)
 }
 
-
 // StartNetworkFollower kicks off the tracking of the network. It starts
 // long running network client threads and returns an object for checking
 // state and stopping those threads.
@@ -132,14 +134,12 @@ func (c *Client) IsNetworkHealthy() bool {
 	return c.api.GetHealth().IsHealthy()
 }
 
-
 // registers the network health callback to be called any time the network
 // health changes
 func (c *Client) RegisterNetworkHealthCB(nhc NetworkHealthCallback) {
 	c.api.GetHealth().AddFunc(nhc.Callback)
 }
 
-
 // RegisterListener records and installs a listener for messages
 // matching specific uid, msgType, and/or username
 // Returns a ListenerUnregister interface which can be
-- 
GitLab