Skip to content

Commit

Permalink
Fix some logging issues
Browse files Browse the repository at this point in the history
  • Loading branch information
bb4L committed Jul 4, 2021
1 parent 365ed70 commit 48f5aea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion logging/loggers.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ const prefixes = log.Ldate | log.Ltime | log.Lmsgprefix

// GetLogger returns a logger with given additional prefix
func GetLogger(output io.Writer, places ...string) *log.Logger {
return log.New(output, "["+strings.Join(places, "."), prefixes)
return log.New(output, "["+strings.Join(places, ".")+"] ", prefixes)
}
2 changes: 0 additions & 2 deletions storage/alarm.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ func (storageHelper *Helper) GetAlarms(withWritePermission bool) ([]types.Alarm,
if err != nil {
return []types.Alarm{}, err
}
logger.Println("alarms")
logger.Println(data.Alarms)
return data.Alarms, nil

}
Expand Down

0 comments on commit 48f5aea

Please sign in to comment.