Code and formatting fixes
Changed the shorthand for log config flag. Fixed formatting as mentioned. Removed unnecessary function declarations from elektronLogger interface. Disabled schedWindow and clsfnTaskDistrOverhead in config file.
This commit is contained in:
parent
02abb1e882
commit
027adef642
5 changed files with 6 additions and 11 deletions
|
@ -1,11 +1,11 @@
|
|||
package logging
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
log "github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
type consoleLogger struct {
|
||||
|
@ -88,7 +88,6 @@ func (cLog *consoleLogger) createLogFile(prefix string) {
|
|||
if cLog.isEnabled() {
|
||||
filename := strings.Join([]string{prefix, cLog.getFilenameExtension()}, "")
|
||||
dirName := cLog.logDir.getDirName()
|
||||
fmt.Println(dirName)
|
||||
if dirName != "" {
|
||||
if logFile, err := os.Create(filepath.Join(dirName, filename)); err != nil {
|
||||
log.Fatal("Unable to create logFile: ", err)
|
||||
|
|
Reference in a new issue