Skip to content

Commit

Permalink
Decouple transfer_manager
Browse files Browse the repository at this point in the history
Remove unnecessary dependencies on transfer_manager by moving the code to the common libraries
4196af89d6b162b2ecd9c7e6d60500c242ce1e87
  • Loading branch information
ovandriyanov committed Aug 29, 2024
1 parent 293d372 commit 966d925
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package util
package protoutil

import (
cloud "github.com/doublecloud/transfer/cloud/bitbucket/private-api/yandex/cloud/priv"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package util
package protoutil

import (
"testing"
Expand Down
3 changes: 2 additions & 1 deletion transfer_manager/go/pkg/util/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"encoding/json"
"fmt"

"github.com/doublecloud/transfer/cloud/dataplatform/ycloud/protoutil"
"go.ytsaurus.tech/library/go/core/log"
"google.golang.org/protobuf/encoding/protojson"
"google.golang.org/protobuf/reflect/protoreflect"
Expand Down Expand Up @@ -34,7 +35,7 @@ func AppendRequestDataField(
fieldNames FieldNames,
lgr log.Logger,
) []log.Field {
logSafeMessage := CopyWithoutSensitiveFields(protoMessage)
logSafeMessage := protoutil.CopyWithoutSensitiveFields(protoMessage)
logSafeJSON, err := protojson.MarshalOptions{UseProtoNames: true}.Marshal(logSafeMessage)
if err != nil {
lgr.Warn(fmt.Sprintf("Cannot marshal %s message into JSON", fieldNames.MainName), log.Error(err))
Expand Down

0 comments on commit 966d925

Please sign in to comment.