Skip to content

Commit

Permalink
[FAB-9131] use flogging in docker controller
Browse files Browse the repository at this point in the history
Change-Id: I581828d4570bbac2cd96ad018f0901e498bfc468
Signed-off-by: Matthew Sykes <sykesmat@us.ibm.com>
  • Loading branch information
sykesm committed Aug 24, 2018
1 parent 50aec3f commit 8db4c58
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/container/dockercontroller/dockercontroller.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import (
"github.com/hyperledger/fabric/core/container"
"github.com/hyperledger/fabric/core/container/ccintf"
cutil "github.com/hyperledger/fabric/core/container/util"
"github.com/op/go-logging"
"github.com/spf13/viper"
)

Expand Down Expand Up @@ -315,7 +314,7 @@ func (vm *DockerVM) Start(ccid ccintf.CCID,

// Acquire a custom logger for our chaincode, inheriting the level from the peer
containerLogger := flogging.MustGetLogger(containerName)
logging.SetLevel(logging.GetLevel("peer"), containerName)
flogging.SetModuleLevel(flogging.GetModuleLevel("peer"), containerName)

for {
// Loop forever dumping lines of text into the containerLogger
Expand Down

0 comments on commit 8db4c58

Please sign in to comment.