From 353a5d6fc25cb0e31ccb4cd433fed6112089c0af Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Tue, 2 Jun 2020 11:03:01 +0100 Subject: [PATCH] Remove p2p log lines --- cmd/dendritejs/jsServer.go | 4 ---- cmd/dendritejs/keyfetcher.go | 3 --- 2 files changed, 7 deletions(-) diff --git a/cmd/dendritejs/jsServer.go b/cmd/dendritejs/jsServer.go index a5ac574d8..31f122645 100644 --- a/cmd/dendritejs/jsServer.go +++ b/cmd/dendritejs/jsServer.go @@ -49,15 +49,11 @@ func (h *JSServer) OnRequestFromJS(this js.Value, args []js.Value) interface{} { // we need to put this in an immediately invoked goroutine. go func() { resolve := pargs[0] - fmt.Println("Received request:") - fmt.Printf("%s\n", httpStr) resStr, err := h.handle(httpStr) errStr := "" if err != nil { errStr = err.Error() } - fmt.Println("Sending response:") - fmt.Printf("%s\n", resStr) resolve.Invoke(map[string]interface{}{ "result": resStr, "error": errStr, diff --git a/cmd/dendritejs/keyfetcher.go b/cmd/dendritejs/keyfetcher.go index 47a81c41e..0073b7e6b 100644 --- a/cmd/dendritejs/keyfetcher.go +++ b/cmd/dendritejs/keyfetcher.go @@ -23,7 +23,6 @@ import ( "github.com/libp2p/go-libp2p-core/peer" "github.com/matrix-org/gomatrixserverlib" - "github.com/matrix-org/util" ) const libp2pMatrixKeyID = "ed25519:libp2p-dendrite" @@ -63,8 +62,6 @@ func (f *libp2pKeyFetcher) FetchKeys( if err != nil { return nil, fmt.Errorf("Failed to extract raw bytes from public key: %w", err) } - util.GetLogger(ctx).Info("libp2pKeyFetcher.FetchKeys: Using public key %v for server name %s", pubKeyBytes, req.ServerName) - b64Key := gomatrixserverlib.Base64String(pubKeyBytes) res[req] = gomatrixserverlib.PublicKeyLookupResult{ VerifyKey: gomatrixserverlib.VerifyKey{