From bd2c90d34a8750f1c1f9f148a15d21c524c0cf9e Mon Sep 17 00:00:00 2001
From: Benjamin Wenger <ben@elixxir.ioo>
Date: Mon, 2 Nov 2020 15:45:45 -0800
Subject: [PATCH] added log when the listener is registered

---
 api/client.go      | 3 +++
 bindings/client.go | 2 ++
 2 files changed, 5 insertions(+)

diff --git a/api/client.go b/api/client.go
index 46cc459af..ba9817414 100644
--- a/api/client.go
+++ b/api/client.go
@@ -59,6 +59,7 @@ type Client struct {
 // merely creates a new cryptographic identity for adding such information
 // at a later date.
 func NewClient(ndfJSON, storageDir string, password []byte, registrationCode string) error {
+	jww.INFO.Printf("NewClient()")
 	// Use fastRNG for RNG ops (AES fortuna based RNG using system RNG)
 	rngStreamGen := fastRNG.NewStreamGenerator(12, 3, csprng.NewSystemRNG)
 	rngStream := rngStreamGen.GetStream()
@@ -103,6 +104,7 @@ func NewClient(ndfJSON, storageDir string, password []byte, registrationCode str
 // merely creates a new cryptographic identity for adding such information
 // at a later date.
 func NewPrecannedClient(precannedID uint, defJSON, storageDir string, password []byte) error {
+	jww.INFO.Printf("NewPrecannedClient()")
 	// Use fastRNG for RNG ops (AES fortuna based RNG using system RNG)
 	rngStreamGen := fastRNG.NewStreamGenerator(12, 3, csprng.NewSystemRNG)
 	rngStream := rngStreamGen.GetStream()
@@ -141,6 +143,7 @@ func NewPrecannedClient(precannedID uint, defJSON, storageDir string, password [
 
 // Login initalizes a client object from existing storage.
 func Login(storageDir string, password []byte) (*Client, error) {
+	jww.INFO.Printf("Login()")
 	// Use fastRNG for RNG ops (AES fortuna based RNG using system RNG)
 	rngStreamGen := fastRNG.NewStreamGenerator(12, 3,
 		csprng.NewSystemRNG)
diff --git a/bindings/client.go b/bindings/client.go
index 3d033b5a5..0b96819f3 100644
--- a/bindings/client.go
+++ b/bindings/client.go
@@ -228,6 +228,8 @@ func (c *Client) RegisterNetworkHealthCB(nhc NetworkHealthCallback) {
 // Make sure to not conflict with ANY default message types
 func (c *Client) RegisterListener(uid []byte, msgType int,
 	listener Listener) (*Unregister, error) {
+	jww.INFO.Printf("RegisterListener(%v, %d)", uid,
+		msgType)
 
 	name := listener.Name()
 
-- 
GitLab