Skip to content

Commit

Permalink
Fix erroneous and extraneous log message
Browse files Browse the repository at this point in the history
Signed-off-by: John Belamaric <jbelamaric@google.com>
  • Loading branch information
johnbelamaric committed Nov 30, 2023
1 parent 6d4b738 commit bd1881d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion porch/pkg/cache/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,9 @@ func (r *cachedRepository) Close() error {
// There isn't much use in returning an error here, so we just log it
// and create a PackageRevisionMeta with just name and namespace. This
// makes sure that the Delete event is sent.
klog.Warningf("Error looking up PackageRev CR for %s: %v")
if !apierrors.IsNotFound(err) {
klog.Warningf("Error deleting PackageRev CR %s/%s: %s", nn.Namespace, nn.Name, err)
}
pkgRevMeta = meta.PackageRevisionMeta{
Name: nn.Name,
Namespace: nn.Namespace,
Expand Down

0 comments on commit bd1881d

Please sign in to comment.