From 24a2fc5a81c451a9aa3aadfc939607918ae4c81e Mon Sep 17 00:00:00 2001 From: Abin Simon Date: Fri, 1 Sep 2023 16:07:57 +0530 Subject: [PATCH] Remove stray print statement (#4168) Change `f did not decode` print statement to a log. --- #### 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 - [ ] :computer: CI/Deployment - [x] :broom: Tech Debt/Cleanup #### Issue(s) * # #### Test Plan - [ ] :muscle: Manual - [ ] :zap: Unit test - [ ] :green_heart: E2E --- src/internal/kopia/upload.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/internal/kopia/upload.go b/src/internal/kopia/upload.go index bdd3f2444..7342037a3 100644 --- a/src/internal/kopia/upload.go +++ b/src/internal/kopia/upload.go @@ -5,7 +5,6 @@ import ( "context" "encoding/base64" "encoding/binary" - "fmt" "io" "os" "runtime/trace" @@ -249,10 +248,12 @@ func (cp *corsoProgress) FinishedHashingFile(fname string, bs int64) { for i := range sl { rdt, err := base64.StdEncoding.DecodeString(sl[i]) if err != nil { - fmt.Println("f did not decode") + logger.Ctx(cp.ctx).Infow( + "unable to decode base64 path segment", + "segment", sl[i]) + } else { + sl[i] = string(rdt) } - - sl[i] = string(rdt) } logger.Ctx(cp.ctx).Debugw(