From f4cfb10d971835030320521cb916fab7bef91a50 Mon Sep 17 00:00:00 2001 From: John Donaldson Date: Thu, 19 Nov 2020 16:26:53 -0500 Subject: [PATCH] Rename event.log as events.log --- CHANGELOG.md | 5 +++-- cmd/mothd/state.go | 2 +- cmd/mothd/state_test.go | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) 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 {