Minor code improvements

Removed commented code. Resolved spacing issue in yaml.
This commit is contained in:
balandi1 2019-11-26 13:19:15 -05:00
parent 24dbbb208f
commit bb8c0a79d6
3 changed files with 10 additions and 19 deletions

View file

@ -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)

View file

@ -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:

View file

@ -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