1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-08 05:57:03 +09:00
This commit is contained in:
Sergey Cherepanov 2023-05-19 22:21:12 +02:00 committed by Mikhail Iudin
parent 3d2005833b
commit a0633c39ec
No known key found for this signature in database
GPG key ID: FAAAA8BAABDFF1C0

View file

@ -3,10 +3,11 @@ package metric
import ( import (
"context" "context"
"github.com/anytypeio/any-sync/app/logger" "github.com/anytypeio/any-sync/app/logger"
"go.uber.org/zap"
"testing" "testing"
) )
func TestLog(t *testing.T) { func TestLog(t *testing.T) {
m := &metric{rpcLog: logger.NewNamed("rpcLog")} m := &metric{rpcLog: logger.NewNamed("rpcLog"), appField: zap.String("appName", "test")}
m.RequestLog(context.Background(), "rpc") m.RequestLog(context.Background(), "rpc")
} }