mirror of
https://github.com/1f349/dendrite.git
synced 2024-11-26 05:31:32 +00:00
Remove p2p log lines
This commit is contained in:
parent
a07fc0ef35
commit
353a5d6fc2
@ -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.
|
// we need to put this in an immediately invoked goroutine.
|
||||||
go func() {
|
go func() {
|
||||||
resolve := pargs[0]
|
resolve := pargs[0]
|
||||||
fmt.Println("Received request:")
|
|
||||||
fmt.Printf("%s\n", httpStr)
|
|
||||||
resStr, err := h.handle(httpStr)
|
resStr, err := h.handle(httpStr)
|
||||||
errStr := ""
|
errStr := ""
|
||||||
if err != nil {
|
if err != nil {
|
||||||
errStr = err.Error()
|
errStr = err.Error()
|
||||||
}
|
}
|
||||||
fmt.Println("Sending response:")
|
|
||||||
fmt.Printf("%s\n", resStr)
|
|
||||||
resolve.Invoke(map[string]interface{}{
|
resolve.Invoke(map[string]interface{}{
|
||||||
"result": resStr,
|
"result": resStr,
|
||||||
"error": errStr,
|
"error": errStr,
|
||||||
|
@ -23,7 +23,6 @@ import (
|
|||||||
|
|
||||||
"github.com/libp2p/go-libp2p-core/peer"
|
"github.com/libp2p/go-libp2p-core/peer"
|
||||||
"github.com/matrix-org/gomatrixserverlib"
|
"github.com/matrix-org/gomatrixserverlib"
|
||||||
"github.com/matrix-org/util"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const libp2pMatrixKeyID = "ed25519:libp2p-dendrite"
|
const libp2pMatrixKeyID = "ed25519:libp2p-dendrite"
|
||||||
@ -63,8 +62,6 @@ func (f *libp2pKeyFetcher) FetchKeys(
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("Failed to extract raw bytes from public key: %w", err)
|
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)
|
b64Key := gomatrixserverlib.Base64String(pubKeyBytes)
|
||||||
res[req] = gomatrixserverlib.PublicKeyLookupResult{
|
res[req] = gomatrixserverlib.PublicKeyLookupResult{
|
||||||
VerifyKey: gomatrixserverlib.VerifyKey{
|
VerifyKey: gomatrixserverlib.VerifyKey{
|
||||||
|
Loading…
Reference in New Issue
Block a user