diff --git a/CHANGELOG.md b/CHANGELOG.md index ae1de8a..ab04600 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/cmd/mothd/state.go b/cmd/mothd/state.go index c861f00..38d3c7e 100644 --- a/cmd/mothd/state.go +++ b/cmd/mothd/state.go @@ -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 } diff --git a/cmd/mothd/state_test.go b/cmd/mothd/state_test.go index 621df07..f6635fa 100644 --- a/cmd/mothd/state_test.go +++ b/cmd/mothd/state_test.go @@ -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 {