Commit 2c795a4c authored by Matthew Sykes's avatar Matthew Sykes Committed by Alessandro Sorniotti
Browse files

[FAB-12902] update logger names in chaincode pkg



Change-Id: Idb9f5aa3fd0067998a732c81f8f87c7fb02e165b
Signed-off-by: default avatarMatthew Sykes <sykesmat@us.ibm.com>
parent 2b9a8167
......@@ -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
......
......@@ -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.
......
......@@ -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)
......
......@@ -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 {
......
......@@ -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 {
......
......@@ -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)
......
......@@ -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 {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment