From a6ccca161ca81ffab42966b859642f264b399b78 Mon Sep 17 00:00:00 2001
From: Benjamin Wenger <ben@elixxir.ioo>
Date: Wed, 11 Nov 2020 17:35:56 -0800
Subject: [PATCH] improved logging

---
 auth/confirm.go | 4 ++--
 auth/request.go | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/auth/confirm.go b/auth/confirm.go
index 5ce7ca9f8..2ffa7a979 100644
--- a/auth/confirm.go
+++ b/auth/confirm.go
@@ -124,7 +124,7 @@ func ConfirmRequestAuth(partner contact.Contact, rng io.Reader,
 	if err != nil {
 		// if the send fails just set it to failed, it will but automatically
 		// retried
-		jww.ERROR.Printf("request failed to transmit, will be "+
+		jww.ERROR.Printf("auth confirm failed to transmit, will be "+
 			"handled on reconnect: %+v", err)
 		storage.GetCriticalRawMessages().Failed(cmixMsg)
 	}
@@ -138,7 +138,7 @@ func ConfirmRequestAuth(partner contact.Contact, rng io.Reader,
 
 	success, _, _ := utility.TrackResults(sendResults, 1)
 	if !success {
-		jww.ERROR.Printf("request failed to transmit, will be " +
+		jww.ERROR.Printf("auth confirm failed to transmit, will be " +
 			"handled on reconnect")
 		storage.GetCriticalRawMessages().Failed(cmixMsg)
 	} else {
diff --git a/auth/request.go b/auth/request.go
index 296b1bf71..ff2811c49 100644
--- a/auth/request.go
+++ b/auth/request.go
@@ -150,7 +150,7 @@ func RequestAuth(partner, me contact.Contact, message string, rng io.Reader,
 	if err != nil {
 		// if the send fails just set it to failed, it will but automatically
 		// retried
-		jww.ERROR.Printf("request failed to transmit, will be "+
+		jww.ERROR.Printf("auth request failed to transmit, will be "+
 			"handled on reconnect: %+v", err)
 		storage.GetCriticalRawMessages().Failed(cmixMsg)
 	}
@@ -164,7 +164,7 @@ func RequestAuth(partner, me contact.Contact, message string, rng io.Reader,
 
 	success, _, _ := utility.TrackResults(sendResults, 1)
 	if !success {
-		jww.ERROR.Printf("request failed to transmit, will be " +
+		jww.ERROR.Printf("auth request failed to transmit, will be " +
 			"handled on reconnect")
 		storage.GetCriticalRawMessages().Failed(cmixMsg)
 	} else {
-- 
GitLab