Skip to content

Commit

Permalink
[Neo Plugin Bug]fix 3296 (#3299)
Browse files Browse the repository at this point in the history
* fix 3296

* Update src/Plugins/ApplicationLogs/Store/LogStorageStore.cs

* add exception message to the incorrect storeitem

* optimize the code to apply Hecate suggestion

* revert change to the exception info

* clean using

---------

Co-authored-by: Shargon <[email protected]>
  • Loading branch information
Jim8y and shargon committed Jun 11, 2024
1 parent 38cc0e9 commit b68ad51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Plugins/ApplicationLogs/Store/LogStorageStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public Guid PutStackItemState(StackItem stackItem)
{
_snapshot.Put(key, BinarySerializer.Serialize(stackItem, ExecutionEngineLimits.Default with { MaxItemSize = (uint)Settings.Default.MaxStackSize }));
}
catch (NotSupportedException)
catch
{
_snapshot.Put(key, BinarySerializer.Serialize(StackItem.Null, ExecutionEngineLimits.Default with { MaxItemSize = (uint)Settings.Default.MaxStackSize }));
}
Expand Down

0 comments on commit b68ad51

Please sign in to comment.