Skip to content

Commit

Permalink
[FAB-12902] update logger names in chaincode pkg
Browse files Browse the repository at this point in the history
Change-Id: Idb9f5aa3fd0067998a732c81f8f87c7fb02e165b
Signed-off-by: Matthew Sykes <sykesmat@us.ibm.com>
  • Loading branch information
sykesm authored and ale-linux committed Nov 17, 2018
1 parent 2b9a816 commit 2c795a4
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion core/chaincode/accesscontrol/access.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"google.golang.org/grpc"
)

var logger = flogging.MustGetLogger("accessControl")
var logger = flogging.MustGetLogger("chaincode.accesscontrol")

// CertAndPrivKeyPair contains a certificate
// and its corresponding private key in base64 format
Expand Down
2 changes: 1 addition & 1 deletion core/chaincode/platforms/ccmetadata/ccmetadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
)

//logger used by this package
var logger = flogging.MustGetLogger("chaincode-metadata")
var logger = flogging.MustGetLogger("chaincode.platform.metadata")

//MetadataProvider is implemented by each platform in a platform specific manner.
//It can process metadata stored in ChaincodeDeploymentSpec in different formats.
Expand Down
2 changes: 1 addition & 1 deletion core/chaincode/platforms/golang/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ var includeFileTypes = map[string]bool{
".json": true,
}

var logger = flogging.MustGetLogger("golang-platform")
var logger = flogging.MustGetLogger("chaincode.platform.golang")

func getCodeFromFS(path string) (codegopath string, err error) {
logger.Debugf("getCodeFromFS %s", path)
Expand Down
2 changes: 1 addition & 1 deletion core/chaincode/platforms/java/platform.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
pb "github.com/hyperledger/fabric/protos/peer"
)

var logger = flogging.MustGetLogger("java-platform")
var logger = flogging.MustGetLogger("chaincode.platform.java")

// Platform for java chaincodes in java
type Platform struct {
Expand Down
2 changes: 1 addition & 1 deletion core/chaincode/platforms/node/platform.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
pb "github.com/hyperledger/fabric/protos/peer"
)

var logger = flogging.MustGetLogger("node-platform")
var logger = flogging.MustGetLogger("chaincode.platform.node")

// Platform for chaincodes written in Go
type Platform struct {
Expand Down
2 changes: 1 addition & 1 deletion core/chaincode/platforms/platforms.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ type Registry struct {
PackageWriter PackageWriter
}

var logger = flogging.MustGetLogger("chaincode-platform")
var logger = flogging.MustGetLogger("chaincode.platform")

func NewRegistry(platformTypes ...Platform) *Registry {
platforms := make(map[string]Platform)
Expand Down
2 changes: 1 addition & 1 deletion core/chaincode/platforms/util/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
cutil "github.com/hyperledger/fabric/core/container/util"
)

var logger = flogging.MustGetLogger("util")
var logger = flogging.MustGetLogger("chaincode.platform.util")

//ComputeHash computes contents hash based on previous hash
func ComputeHash(contents []byte, hash []byte) []byte {
Expand Down

0 comments on commit 2c795a4

Please sign in to comment.