Skip to content

Commit 48f5aea

Browse files
committed
Fix some logging issues
1 parent 365ed70 commit 48f5aea

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

logging/loggers.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ const prefixes = log.Ldate | log.Ltime | log.Lmsgprefix
1111

1212
// GetLogger returns a logger with given additional prefix
1313
func GetLogger(output io.Writer, places ...string) *log.Logger {
14-
return log.New(output, "["+strings.Join(places, "."), prefixes)
14+
return log.New(output, "["+strings.Join(places, ".")+"] ", prefixes)
1515
}

storage/alarm.go

-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ func (storageHelper *Helper) GetAlarms(withWritePermission bool) ([]types.Alarm,
3434
if err != nil {
3535
return []types.Alarm{}, err
3636
}
37-
logger.Println("alarms")
38-
logger.Println(data.Alarms)
3937
return data.Alarms, nil
4038

4139
}

0 commit comments

Comments
 (0)