From e02f4a9d7f95a9fa77d616ce1d0376e34f9f3f07 Mon Sep 17 00:00:00 2001 From: ashmrtn <3891298+ashmrtn@users.noreply.github.com> Date: Tue, 15 Aug 2023 08:27:34 -0700 Subject: [PATCH] Print the point in time being used (#4032) When looking for recently deleted backups, print the point in time that kopia will be opened at so that if we need to manually debug something the value is right there. --- #### Does this PR need a docs update or release note? - [ ] :white_check_mark: Yes, it's included - [ ] :clock1: Yes, but in a later PR - [x] :no_entry: No #### Type of change - [ ] :sunflower: Feature - [ ] :bug: Bugfix - [ ] :world_map: Documentation - [ ] :robot: Supportability/Tests - [x] :computer: CI/Deployment - [x] :broom: Tech Debt/Cleanup #### Issue(s) * #4031 #### Test Plan - [ ] :muscle: Manual - [ ] :zap: Unit test - [ ] :green_heart: E2E --- src/cmd/longevity_test/longevity.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/cmd/longevity_test/longevity.go b/src/cmd/longevity_test/longevity.go index b2ca512a2..a5545617e 100644 --- a/src/cmd/longevity_test/longevity.go +++ b/src/cmd/longevity_test/longevity.go @@ -73,6 +73,12 @@ func pitrListBackups( pitr time.Time, backupIDs []string, ) error { + logAndPrint( + ctx, + "looking for %d backup(s) using timestamp %v\n", + len(backupIDs), + pitr) + if len(backupIDs) == 0 { return nil }