Skip to content

Commit

Permalink
DEVPROD-12257 Log when archive tarball doesn't archive any files (#8505)
Browse files Browse the repository at this point in the history
  • Loading branch information
bynn authored Nov 25, 2024
1 parent 8ff0291 commit 62fb931
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions agent/command/archive_tarball_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ func (c *tarballCreate) Execute(ctx context.Context,
return errors.WithStack(err)
}
if filesArchived == 0 {
logger.Execution().Warning("No files were archived.")
deleteErr := os.Remove(c.Target)
if deleteErr != nil {
logger.Execution().Infof("Problem deleting empty archive: %s.", deleteErr.Error())
Expand Down
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var (

// Agent version to control agent rollover. The format is the calendar date
// (YYYY-MM-DD).
AgentVersion = "2024-11-21"
AgentVersion = "2024-11-25"
)

const (
Expand Down

0 comments on commit 62fb931

Please sign in to comment.