Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.
9 changes: 2 additions & 7 deletions daemon/logger/journald/journald.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,7 @@ const name = "journald"
type journald struct {
mu sync.Mutex
vars map[string]string // additional variables and values to send to the journal along with the log message
readers readerList
closed bool
}

type readerList struct {
readers map[*logger.LogWatcher]*logger.LogWatcher
readers map[*logger.LogWatcher]struct{}
}

func init() {
Expand Down Expand Up @@ -84,7 +79,7 @@ func New(info logger.Info) (logger.Logger, error) {
for k, v := range extraAttrs {
vars[k] = v
}
return &journald{vars: vars, readers: readerList{readers: make(map[*logger.LogWatcher]*logger.LogWatcher)}}, nil
return &journald{vars: vars, readers: make(map[*logger.LogWatcher]struct{})}, nil
}

// We don't actually accept any options, but we have to supply a callback for
Expand Down
Loading