diff --git a/api/client.go b/api/client.go index 46cc459af8176e8896de5761afe01feb433462af..ba9817414705ebd65e70921e3461bceec17db451 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 3d033b5a535a44ec671c586a8201be70bbdc1227..0b96819f34905fa61b2944664e98d76f6f2ad490 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()