Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Fixed rpclogger issue
Browse files Browse the repository at this point in the history
  • Loading branch information
IRCody committed Aug 22, 2016
1 parent 2d9ba06 commit 9bf04bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions control/plugin/rpc/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func ToConfigPolicy(reply *GetConfigPolicyReply) *cpolicy.ConfigPolicy {
br, err = cpolicy.NewBoolRule(key, val.Required)
}
if err != nil {
log.Warn("Empty key found with value %v", val)
rpcLogger.Warn("Empty key found with value %v", val)
continue
}
nodes[k].Add(br)
Expand All @@ -126,7 +126,7 @@ func ToConfigPolicy(reply *GetConfigPolicyReply) *cpolicy.ConfigPolicy {
sr, err = cpolicy.NewStringRule(key, val.Required)
}
if err != nil {
log.Warn("Empty key found with value %v", val)
rpcLogger.Warn("Empty key found with value %v", val)
continue
}

Expand All @@ -147,7 +147,7 @@ func ToConfigPolicy(reply *GetConfigPolicyReply) *cpolicy.ConfigPolicy {
ir, err = cpolicy.NewIntegerRule(key, val.Required)
}
if err != nil {
log.Warn("Empty key found with value %v", val)
rpcLogger.Warn("Empty key found with value %v", val)
continue
}
if val.HasMin {
Expand Down Expand Up @@ -175,7 +175,7 @@ func ToConfigPolicy(reply *GetConfigPolicyReply) *cpolicy.ConfigPolicy {
fr, err = cpolicy.NewFloatRule(key, val.Required)
}
if err != nil {
log.Warn("Empty key found with value %v", val)
rpcLogger.Warn("Empty key found with value %v", val)
continue
}

Expand Down

0 comments on commit 9bf04bb

Please sign in to comment.