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")
} }