mirror of https://github.com/dirtbags/moth.git
Merge pull request #157 from dirtbags/rename_event_log
Rename event.log as events.log
This commit is contained in:
commit
9c118f83b0
|
@ -4,8 +4,9 @@ All notable changes to this project will be documented in this file.
|
|||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [v4.1.0-pre] - Unreleased
|
||||
|
||||
## [Unreleased]
|
||||
### Changed
|
||||
- Rename event.log as events.log to maintain consistency with MOTHv3
|
||||
|
||||
## [v4.0.2] - 2020-10-29
|
||||
### Added
|
||||
|
|
|
@ -403,7 +403,7 @@ func (s *State) reopenEventLog() error {
|
|||
log.Print(err)
|
||||
}
|
||||
}
|
||||
eventWriter, err := s.OpenFile("event.log", os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
|
||||
eventWriter, err := s.OpenFile("events.log", os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
@ -255,7 +255,7 @@ func TestStateMaintainer(t *testing.T) {
|
|||
|
||||
time.Sleep(updateInterval)
|
||||
|
||||
eventLog, err := afero.ReadFile(s.Fs, "event.log")
|
||||
eventLog, err := afero.ReadFile(s.Fs, "events.log")
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
} else if events := strings.Split(string(eventLog), "\n"); len(events) != 3 {
|
||||
|
|
Loading…
Reference in New Issue