Merge pull request #157 from dirtbags/rename_event_log

Rename event.log as events.log
This commit is contained in:
int00h5525 2020-11-19 15:28:52 -06:00 committed by GitHub
commit 9c118f83b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

View File

@ -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/), 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). 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 ## [v4.0.2] - 2020-10-29
### Added ### Added

View File

@ -403,7 +403,7 @@ func (s *State) reopenEventLog() error {
log.Print(err) 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 { if err != nil {
return err return err
} }

View File

@ -255,7 +255,7 @@ func TestStateMaintainer(t *testing.T) {
time.Sleep(updateInterval) time.Sleep(updateInterval)
eventLog, err := afero.ReadFile(s.Fs, "event.log") eventLog, err := afero.ReadFile(s.Fs, "events.log")
if err != nil { if err != nil {
t.Error(err) t.Error(err)
} else if events := strings.Split(string(eventLog), "\n"); len(events) != 3 { } else if events := strings.Split(string(eventLog), "\n"); len(events) != 3 {