Skip to content

Commit

Permalink
Append Log (#190)
Browse files Browse the repository at this point in the history
Fixes #182
  • Loading branch information
simulot authored Mar 15, 2024
1 parent fb314d8 commit 607c29d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (app *SharedFlags) Start(ctx context.Context) error {

if app.LogFile != "" {
if app.out == nil {
f, err := os.Create(app.LogFile)
f, err := os.OpenFile(app.LogFile, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0o664)
if err != nil {
joinedErr = errors.Join(joinedErr, err)
} else {
Expand Down
3 changes: 3 additions & 0 deletions docs/releases.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Release notes

### fix: Append Log #182
Log are now appended to the log file

## Release 0.12.0

### fix: #173 [Feature Request:] Set date from file system timestamp
Expand Down

0 comments on commit 607c29d

Please sign in to comment.