Skip to content

Commit

Permalink
Merge "[FAB-3390] Override log level - cauthdsl and policies"
Browse files Browse the repository at this point in the history
  • Loading branch information
Srinivasan Muralidharan authored and Gerrit Code Review committed Apr 27, 2017
2 parents ef5a7e8 + b5f9f0a commit 5c804cd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/policies/policy.go
Expand Up @@ -60,7 +60,7 @@ const (
BlockValidation = PathSeparator + ChannelPrefix + PathSeparator + OrdererPrefix + PathSeparator + "BlockValidation"
)

var logger = flogging.MustGetLogger("common/policies")
var logger = flogging.MustGetLogger("policies")

// Policy is used to determine if a signature is valid
type Policy interface {
Expand Down
2 changes: 1 addition & 1 deletion peer/node/start.go
Expand Up @@ -261,7 +261,7 @@ func serve(args []string) error {

// set the logging level for specific modules defined via environment
// variables or core.yaml
overrideLogModules := []string{"msp", "gossip", "ledger"}
overrideLogModules := []string{"msp", "gossip", "ledger", "cauthdsl", "policies"}
for _, module := range overrideLogModules {
err = common.SetLogLevelFromViper(module)
if err != nil {
Expand Down
2 changes: 2 additions & 0 deletions sampleconfig/core.yaml
Expand Up @@ -26,9 +26,11 @@ logging:
peer: info

# Override levels for various 'peer' modules
cauthdsl: warning
gossip: warning
ledger: info
msp: warning
policies: warning

format: '%{color}%{time:2006-01-02 15:04:05.000 MST} [%{module}] %{shortfunc} -> %{level:.4s} %{id:03x}%{color:reset} %{message}'

Expand Down

0 comments on commit 5c804cd

Please sign in to comment.