forked from github/multus-cni
Incorporate rkamudhan's comment.
This commit is contained in:
@@ -124,7 +124,7 @@ func SetLogFile (filename string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
loggingStderr = false
|
loggingStderr = true
|
||||||
loggingFp = nil
|
loggingFp = nil
|
||||||
loggingLevel = PanicLevel
|
loggingLevel = PanicLevel
|
||||||
}
|
}
|
||||||
|
@@ -52,11 +52,11 @@ func LoadNetConf(bytes []byte) (*NetConf, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Logging
|
// Logging
|
||||||
if netconf.Logging != "" {
|
if netconf.LogFile != "" {
|
||||||
logging.SetLogFile(netconf.Logging)
|
logging.SetLogFile(netconf.LogFile)
|
||||||
}
|
}
|
||||||
if netconf.LoggingLevel != "" {
|
if netconf.LogLevel != "" {
|
||||||
logging.SetLogLevel(netconf.LoggingLevel)
|
logging.SetLogLevel(netconf.LogLevel)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Parse previous result
|
// Parse previous result
|
||||||
|
@@ -38,8 +38,8 @@ type NetConf struct {
|
|||||||
RawDelegates []map[string]interface{} `json:"delegates"`
|
RawDelegates []map[string]interface{} `json:"delegates"`
|
||||||
Delegates []*DelegateNetConf `json:"-"`
|
Delegates []*DelegateNetConf `json:"-"`
|
||||||
Kubeconfig string `json:"kubeconfig"`
|
Kubeconfig string `json:"kubeconfig"`
|
||||||
Logging string `json:"logging"`
|
LogFile string `json:"logFile"`
|
||||||
LoggingLevel string `json:"logging_level"`
|
LogLevel string `json:"logLevel"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type DelegateNetConf struct {
|
type DelegateNetConf struct {
|
||||||
|
Reference in New Issue
Block a user