quick logging fixes (#3624)
Co-authored-by: aviator-app[bot] <48659329+aviator-app[bot]@users.noreply.github.com>
This commit is contained in:
parent
46eedc0ad1
commit
49903a11ae
@ -744,10 +744,10 @@ func serialize(t *testing.T, item serialization.Parsable) []byte {
|
||||
return byteArray
|
||||
}
|
||||
|
||||
func hydrateMessage(byteArray []byte) (models.Messageable, error) {
|
||||
parseNode, err := kjson.NewJsonParseNodeFactory().GetRootParseNode("application/json", byteArray)
|
||||
func hydrateMessage(body []byte) (models.Messageable, error) {
|
||||
parseNode, err := kjson.NewJsonParseNodeFactory().GetRootParseNode("application/json", body)
|
||||
if err != nil {
|
||||
return nil, clues.Wrap(err, "deserializing bytes into base m365 object")
|
||||
return nil, clues.Wrap(err, "deserializing bytes into base m365 object").With("body_size", len(body))
|
||||
}
|
||||
|
||||
anObject, err := parseNode.GetObjectValue(models.CreateMessageFromDiscriminatorValue)
|
||||
|
||||
@ -174,7 +174,7 @@ func restoreCollection(
|
||||
|
||||
info, err := ir.restore(ictx, body, userID, destinationID, errs)
|
||||
if err != nil {
|
||||
el.AddRecoverable(ctx, err)
|
||||
el.AddRecoverable(ictx, err)
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ func createFromBytes(
|
||||
) (serialization.Parsable, error) {
|
||||
parseNode, err := kjson.NewJsonParseNodeFactory().GetRootParseNode("application/json", bytes)
|
||||
if err != nil {
|
||||
return nil, clues.Wrap(err, "deserializing bytes into base m365 object")
|
||||
return nil, clues.Wrap(err, "deserializing bytes into base m365 object").With("bytes_len", len(bytes))
|
||||
}
|
||||
|
||||
v, err := parseNode.GetObjectValue(createFunc)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user