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 var formattedFields []string
for key, value := range entry.Data { for key, value := range entry.Data {
formattedFields = append(formattedFields, formattedFields = append(formattedFields, strings.Join([]string{key, value.(string)}, "="))
strings.Join([]string{key, value.(string)}, "="))
} }
b.WriteString(message) b.WriteString(message)

View file

@ -12,17 +12,17 @@ console:
minLogLevel: debug minLogLevel: debug
allowOnConsole: true allowOnConsole: true
pcp: pcp:
enabled: true enabled: true
filenameExtension: .pcplog filenameExtension: .pcplog
allowOnConsole: false allowOnConsole: false
schedWindow: schedWindow:
enabled: true enabled: true
filenameExtension: _schedWindow.log filenameExtension: _schedWindow.log
allowOnConsole: true allowOnConsole: true
clsfnTaskDistrOverhead: clsfnTaskDistrOverhead:
enabled: true enabled: true
filenameExtension: _classificationOverhead.log filenameExtension: _classificationOverhead.log
allowOnConsole: true allowOnConsole: true
format: 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 { func WithSchedPolSwitchEnabled(enableSchedPolicySwitch bool, switchingCriteria string) SchedulerOptions {
return func(s ElectronScheduler) error { return func(s ElectronScheduler) error {
s.(*BaseScheduler).schedPolSwitchEnabled = enableSchedPolicySwitch s.(*BaseScheduler).schedPolSwitchEnabled = enableSchedPolicySwitch