Skip to content

Commit 8db4c58

Browse files
committed
[FAB-9131] use flogging in docker controller
Change-Id: I581828d4570bbac2cd96ad018f0901e498bfc468 Signed-off-by: Matthew Sykes <sykesmat@us.ibm.com>
1 parent 50aec3f commit 8db4c58

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/container/dockercontroller/dockercontroller.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import (
2626
"github.com/hyperledger/fabric/core/container"
2727
"github.com/hyperledger/fabric/core/container/ccintf"
2828
cutil "github.com/hyperledger/fabric/core/container/util"
29-
"github.com/op/go-logging"
3029
"github.com/spf13/viper"
3130
)
3231

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

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

320319
for {
321320
// Loop forever dumping lines of text into the containerLogger

0 commit comments

Comments
 (0)