Skip to content

Commit b8fa254

Browse files
vlagent: add log message when checkpoint file is missing (#880)
1 parent 3cd81ce commit b8fa254

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/vlagent/kubernetescollector/checkpoints_db.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ func readCheckpoints(path string) ([]checkpoint, error) {
125125
data, err := os.ReadFile(path)
126126
if err != nil {
127127
if errors.Is(err, os.ErrNotExist) {
128+
logger.Infof("no checkpoints file found at %q; vlagent will read log files from the beginning", path)
128129
return nil, nil
129130
}
130131
return nil, fmt.Errorf("cannot read file checkpoints: %w", err)

0 commit comments

Comments
 (0)