Skip to content

Commit 4f7c22c

Browse files
committed
Move flogging pkg into the peer pkg
The flogging pkg is only utilized by peer and core module with single source-code file. It will keep the structure more tight to move the pkg under the core pkg. Change-Id: Id47cc1315f845dba625ed0fc61873a41250ff99d Signed-off-by: Baohua Yang <[email protected]>
1 parent 3ef851e commit 4f7c22c

File tree

8 files changed

+7
-7
lines changed

8 files changed

+7
-7
lines changed

core/admin.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
"golang.org/x/net/context"
2626

2727
"github.com/golang/protobuf/ptypes/empty"
28-
"github.com/hyperledger/fabric/flogging"
28+
"github.com/hyperledger/fabric/core/flogging"
2929
pb "github.com/hyperledger/fabric/protos/peer"
3030
)
3131

core/chaincode/chaincode_support.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ import (
3333

3434
"github.com/hyperledger/fabric/core/container"
3535
"github.com/hyperledger/fabric/core/container/ccintf"
36+
"github.com/hyperledger/fabric/core/flogging"
3637
"github.com/hyperledger/fabric/core/ledger"
37-
"github.com/hyperledger/fabric/flogging"
3838
pb "github.com/hyperledger/fabric/protos/peer"
3939
)
4040

core/errors/errors.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"fmt"
2323
"runtime"
2424

25-
"github.com/hyperledger/fabric/flogging"
25+
"github.com/hyperledger/fabric/core/flogging"
2626
logging "github.com/op/go-logging"
2727
)
2828

core/errors/errors_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"fmt"
2121
"testing"
2222

23-
"github.com/hyperledger/fabric/flogging"
23+
"github.com/hyperledger/fabric/core/flogging"
2424
)
2525

2626
func TestError(t *testing.T) {
File renamed without changes.

flogging/logging_test.go core/flogging/logging_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package flogging_test
1919
import (
2020
"testing"
2121

22-
"github.com/hyperledger/fabric/flogging"
22+
"github.com/hyperledger/fabric/core/flogging"
2323
"github.com/op/go-logging"
2424
"github.com/spf13/viper"
2525
)

peer/common/common.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ import (
2020
"fmt"
2121

2222
"github.com/hyperledger/fabric/core/errors"
23+
"github.com/hyperledger/fabric/core/flogging"
2324
"github.com/hyperledger/fabric/core/peer"
2425
"github.com/hyperledger/fabric/core/peer/msp"
25-
"github.com/hyperledger/fabric/flogging"
2626
"github.com/hyperledger/fabric/msp"
2727
pb "github.com/hyperledger/fabric/protos/peer"
2828
"github.com/spf13/viper"

peer/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ import (
3131

3232
"github.com/hyperledger/fabric/core"
3333
"github.com/hyperledger/fabric/core/crypto/primitives"
34+
"github.com/hyperledger/fabric/core/flogging"
3435
"github.com/hyperledger/fabric/core/peer/msp"
35-
"github.com/hyperledger/fabric/flogging"
3636
"github.com/hyperledger/fabric/peer/chaincode"
3737
"github.com/hyperledger/fabric/peer/clilogging"
3838
"github.com/hyperledger/fabric/peer/node"

0 commit comments

Comments
 (0)