From e55f342324468fe4b63df1e65eb4d4dce680bf84 Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Mon, 26 Feb 2024 13:40:47 -0800 Subject: [PATCH] Updating Logging -> Debug --- extensions/send_when_online.go | 2 +- testing/filesharing/file_sharing_integration_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/send_when_online.go b/extensions/send_when_online.go index ca011af..28ab4f8 100644 --- a/extensions/send_when_online.go +++ b/extensions/send_when_online.go @@ -47,7 +47,7 @@ func (soe SendWhenOnlineExtension) OnEvent(ev event.Event, profile peer.CwtchPee ev := event.NewEvent(event.SendMessageToPeer, map[event.Field]string{event.ConversationID: strconv.Itoa(ci.ID), event.RemotePeer: ci.Handle, event.Data: body}) ev.EventID = message.Signature // we need this ensure that we correctly ack this in the db when it comes back // TODO: The EventBus is becoming very noisy...we may want to consider a one-way shortcut to Engine i.e. profile.Engine.SendMessageToPeer - log.Infof("resending message that was sent when peer was offline") + log.Debugf("resending message that was sent when peer was offline") profile.PublishEvent(ev) } } diff --git a/testing/filesharing/file_sharing_integration_test.go b/testing/filesharing/file_sharing_integration_test.go index 3a2c366..a5eff8a 100644 --- a/testing/filesharing/file_sharing_integration_test.go +++ b/testing/filesharing/file_sharing_integration_test.go @@ -58,7 +58,7 @@ func TestFileSharing(t *testing.T) { os.RemoveAll("cwtch.out.png") os.RemoveAll("cwtch.out.png.manifest") - log.SetLevel(log.LevelInfo) + log.SetLevel(log.LevelDebug) log.ExcludeFromPattern("tapir") os.Mkdir("tordir", 0700)