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:
parent
8900f6dff9
commit
2a2af20f94
@ -77,12 +77,12 @@ func CreateStatus(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if status.ObjectCount != status.errorCount+status.Successful {
|
if status.ObjectCount != status.errorCount+status.Successful {
|
||||||
logger.Ctx(ctx).DPanicw(
|
logger.Ctx(ctx).Errorw(
|
||||||
"status object count does not match errors + successes",
|
"status object count does not match errors + successes",
|
||||||
"objects", cm.Objects,
|
"objects", cm.Objects,
|
||||||
"successes", cm.Successes,
|
"successes", cm.Successes,
|
||||||
"numErrors", numErr,
|
"numErrors", numErr,
|
||||||
"errors", err.Error())
|
"errors", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
return &status
|
return &status
|
||||||
|
|||||||
@ -72,7 +72,7 @@ func (suite *GCStatusTestSuite) TestCreateStatus_InvalidStatus() {
|
|||||||
t := suite.T()
|
t := suite.T()
|
||||||
params := statusParams{Backup, 9, 3, 13, errors.New("invalidcl")}
|
params := statusParams{Backup, 9, 3, 13, errors.New("invalidcl")}
|
||||||
|
|
||||||
require.Panics(t, func() {
|
require.NotPanics(t, func() {
|
||||||
ctx, flush := tester.NewContext()
|
ctx, flush := tester.NewContext()
|
||||||
defer flush()
|
defer flush()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user