Skip to content

Commit 3e18430

Browse files
committed
added log msgs for create and attach session
1 parent 836562e commit 3e18430

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/slo/native/query/storage.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ import (
55
"errors"
66
"fmt"
77
"io"
8+
"os"
89
"path"
910
"time"
1011

1112
ydb "github.com/ydb-platform/ydb-go-sdk/v3"
13+
"github.com/ydb-platform/ydb-go-sdk/v3/log"
1214
"github.com/ydb-platform/ydb-go-sdk/v3/query"
1315
"github.com/ydb-platform/ydb-go-sdk/v3/trace"
1416

@@ -70,6 +72,7 @@ func NewStorage(ctx context.Context, cfg *config.Config, poolSize int) (*Storage
7072
db, err := ydb.Open(ctx,
7173
cfg.Endpoint+cfg.DB,
7274
ydb.WithSessionPoolLimit(poolSize),
75+
ydb.WithLogger(log.Default(os.Stderr, log.WithMinLevel(log.WARN)), trace.DetailsAll),
7376
)
7477
if err != nil {
7578
return nil, err

0 commit comments

Comments
 (0)