This commit is contained in:
Christien Rioux 2024-02-14 21:33:04 -05:00
parent 40288f41ba
commit 9b04fb1e4b
3 changed files with 13 additions and 7 deletions

View File

@ -60,7 +60,7 @@ mod veilid_layer_filter;
mod wasm_helpers;
pub use self::api_tracing_layer::ApiTracingLayer;
pub use self::core_context::{api_startup, api_startup_json, api_startup_config, UpdateCallback};
pub use self::core_context::{api_startup, api_startup_config, api_startup_json, UpdateCallback};
pub use self::veilid_api::*;
pub use self::veilid_config::*;
pub use self::veilid_layer_filter::*;
@ -110,8 +110,8 @@ pub static DEFAULT_LOG_IGNORE_LIST: [&str; 23] = [
"tungstenite",
"netlink_proto",
"netlink_sys",
"trust_dns_resolver",
"trust_dns_proto",
"hickory_resolver",
"hickory_proto",
"attohttpc",
"ws_stream_wasm",
"keyvaluedb_web",

View File

@ -175,8 +175,14 @@ sealed class VeilidUpdate with _$VeilidUpdate {
required ValueData valueData,
}) = VeilidUpdateValueChange;
factory VeilidUpdate.fromJson(dynamic json) =>
_$VeilidUpdateFromJson(json as Map<String, dynamic>);
factory VeilidUpdate.fromJson(dynamic json) {
try {
return _$VeilidUpdateFromJson(json as Map<String, dynamic>);
} catch (e) {
print('VeilidUpdateFromJson failed: $e');
rethrow;
}
}
}
//////////////////////////////////////

View File

@ -21,7 +21,7 @@ pub static DEFAULT_LOG_IGNORE_LIST: [&str; 21] = [
"tungstenite",
"netlink_proto",
"netlink_sys",
"trust_dns_resolver",
"trust_dns_proto",
"hickory_resolver",
"hickory_proto",
"attohttpc",
];