From b68ad5126ab20c7224fa023052947cf36b65d2a3 Mon Sep 17 00:00:00 2001 From: Jimmy Date: Tue, 11 Jun 2024 11:13:57 +0800 Subject: [PATCH] [Neo Plugin Bug]fix 3296 (#3299) * 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 --- src/Plugins/ApplicationLogs/Store/LogStorageStore.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plugins/ApplicationLogs/Store/LogStorageStore.cs b/src/Plugins/ApplicationLogs/Store/LogStorageStore.cs index 249c5d3bd1..147a80034b 100644 --- a/src/Plugins/ApplicationLogs/Store/LogStorageStore.cs +++ b/src/Plugins/ApplicationLogs/Store/LogStorageStore.cs @@ -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 })); }