revert DPanic log to Error in support pkg (#1340)

## Description

The panic in development mode is interfering with test scrutiny and other general behavior.  Errors will be reported naturally without the need for this additional panic.

## Type of change

- [x] 🤖 Test
- [x] 🐹 Trivial/Minor

## Issue(s)

* #902

## Test Plan

- [x] 💚 E2E
This commit is contained in:
Keepers 2022-10-28 07:32:47 -06:00 committed by GitHub
parent 8900f6dff9
commit 2a2af20f94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -77,12 +77,12 @@ func CreateStatus(
}
if status.ObjectCount != status.errorCount+status.Successful {
logger.Ctx(ctx).DPanicw(
logger.Ctx(ctx).Errorw(
"status object count does not match errors + successes",
"objects", cm.Objects,
"successes", cm.Successes,
"numErrors", numErr,
"errors", err.Error())
"errors", err)
}
return &status

View File

@ -72,7 +72,7 @@ func (suite *GCStatusTestSuite) TestCreateStatus_InvalidStatus() {
t := suite.T()
params := statusParams{Backup, 9, 3, 13, errors.New("invalidcl")}
require.Panics(t, func() {
require.NotPanics(t, func() {
ctx, flush := tester.NewContext()
defer flush()