Minor code improvements
Removed commented code. Resolved spacing issue in yaml.
This commit is contained in:
parent
24dbbb208f
commit
bb8c0a79d6
3 changed files with 10 additions and 19 deletions
|
@ -40,8 +40,7 @@ func (f ElektronFormatter) Format(entry *log.Entry) ([]byte, error) {
|
|||
|
||||
var formattedFields []string
|
||||
for key, value := range entry.Data {
|
||||
formattedFields = append(formattedFields,
|
||||
strings.Join([]string{key, value.(string)}, "="))
|
||||
formattedFields = append(formattedFields, strings.Join([]string{key, value.(string)}, "="))
|
||||
}
|
||||
|
||||
b.WriteString(message)
|
||||
|
|
|
@ -12,17 +12,17 @@ console:
|
|||
minLogLevel: debug
|
||||
allowOnConsole: true
|
||||
pcp:
|
||||
enabled: true
|
||||
filenameExtension: .pcplog
|
||||
allowOnConsole: false
|
||||
enabled: true
|
||||
filenameExtension: .pcplog
|
||||
allowOnConsole: false
|
||||
schedWindow:
|
||||
enabled: true
|
||||
filenameExtension: _schedWindow.log
|
||||
allowOnConsole: true
|
||||
enabled: true
|
||||
filenameExtension: _schedWindow.log
|
||||
allowOnConsole: true
|
||||
clsfnTaskDistrOverhead:
|
||||
enabled: true
|
||||
filenameExtension: _classificationOverhead.log
|
||||
allowOnConsole: true
|
||||
enabled: true
|
||||
filenameExtension: _classificationOverhead.log
|
||||
allowOnConsole: true
|
||||
|
||||
|
||||
format:
|
||||
|
|
|
@ -134,14 +134,6 @@ func WithPCPLog(pcpLog chan struct{}) SchedulerOptions {
|
|||
}
|
||||
}
|
||||
|
||||
/*func WithLoggingChannels(lmt chan elekLogDef.LogMessageType, msg chan string) SchedulerOptions {
|
||||
return func(s ElectronScheduler) error {
|
||||
s.(*BaseScheduler).logMsgType = lmt
|
||||
s.(*BaseScheduler).logMsg = msg
|
||||
return nil
|
||||
}
|
||||
}*/
|
||||
|
||||
func WithSchedPolSwitchEnabled(enableSchedPolicySwitch bool, switchingCriteria string) SchedulerOptions {
|
||||
return func(s ElectronScheduler) error {
|
||||
s.(*BaseScheduler).schedPolSwitchEnabled = enableSchedPolicySwitch
|
||||
|
|
Reference in a new issue