diff --git a/package/linux/veilid-server.conf b/package/linux/veilid-server.conf index c7126e01..29182280 100644 --- a/package/linux/veilid-server.conf +++ b/package/linux/veilid-server.conf @@ -13,6 +13,16 @@ logging: terminal: enabled: false core: + network: + protocol: + udp: + listen_address: ':5150' + tcp: + listen_address: ':5150' + ws: + listen_address: ':5150' + wss: + listen_address: ':5150' protected_store: directory: '/var/db/veilid-server/protected_store' table_store: diff --git a/veilid-core/tests/web.rs b/veilid-core/tests/web.rs index a3cc5e5a..eb60ea38 100644 --- a/veilid-core/tests/web.rs +++ b/veilid-core/tests/web.rs @@ -103,10 +103,11 @@ async fn wasm_test_serialize_routing_table() { setup(); test_serialize_routing_table::test_all().await; } - +/* Should be an integration test not a unit test #[wasm_bindgen_test] #[serial] async fn wasm_test_dht() { setup(); test_dht::test_all().await; } +*/ diff --git a/veilid-flutter/example/lib/app.dart b/veilid-flutter/example/lib/app.dart index 8b886417..4515d99b 100644 --- a/veilid-flutter/example/lib/app.dart +++ b/veilid-flutter/example/lib/app.dart @@ -112,7 +112,12 @@ class _MyAppState extends State with UiLoggy { Future toggleStartup(bool startup) async { if (startup && !_startedUp) { var config = await getDefaultVeilidConfig( - isWeb: kIsWeb, programName: 'Veilid Plugin Example'); + isWeb: kIsWeb, + programName: 'Veilid Plugin Example', + // ignore: avoid_redundant_argument_values, do_not_use_environment + bootstrap: const String.fromEnvironment('BOOTSTRAP'), + // ignore: avoid_redundant_argument_values, do_not_use_environment + networkKeyPassword: const String.fromEnvironment('NETWORK_KEY')); // ignore: do_not_use_environment if (const String.fromEnvironment('DELETE_TABLE_STORE') == '1') { config = config.copyWith( diff --git a/veilid-flutter/example/lib/veilid_init.dart b/veilid-flutter/example/lib/veilid_init.dart index 77b5ceb7..6068fe60 100644 --- a/veilid-flutter/example/lib/veilid_init.dart +++ b/veilid-flutter/example/lib/veilid_init.dart @@ -11,7 +11,7 @@ void veilidInit() { enabled: true, level: VeilidConfigLogLevel.debug, logsInTimings: true, - logsInConsole: false), + logsInConsole: true), api: VeilidWASMConfigLoggingApi( enabled: true, level: VeilidConfigLogLevel.info))); Veilid.instance.initializeVeilidCore(platformConfig.toJson()); diff --git a/veilid-flutter/packages/veilid_test/lib/src/veilid_fixture.dart b/veilid-flutter/packages/veilid_test/lib/src/veilid_fixture.dart index b298c854..c333b6fd 100644 --- a/veilid-flutter/packages/veilid_test/lib/src/veilid_fixture.dart +++ b/veilid-flutter/packages/veilid_test/lib/src/veilid_fixture.dart @@ -38,20 +38,24 @@ class DefaultVeilidFixture implements VeilidFixture { ? [] : ignoreLogTargetsStr.split(',').map((e) => e.trim()).toList(); + final logLevel = VeilidConfigLogLevel.fromJson( + // ignore: do_not_use_environment + const String.fromEnvironment('LOG_LEVEL', defaultValue: 'info')); + final Map platformConfigJson; if (kIsWeb) { final platformConfig = VeilidWASMConfig( logging: VeilidWASMConfigLogging( performance: VeilidWASMConfigLoggingPerformance( enabled: true, - level: VeilidConfigLogLevel.debug, + level: logLevel, logsInTimings: true, - logsInConsole: false, + logsInConsole: true, ignoreLogTargets: ignoreLogTargets, ), api: VeilidWASMConfigLoggingApi( enabled: true, - level: VeilidConfigLogLevel.info, + level: logLevel, ignoreLogTargets: ignoreLogTargets, ))); platformConfigJson = platformConfig.toJson(); @@ -72,8 +76,7 @@ class DefaultVeilidFixture implements VeilidFixture { ), api: VeilidFFIConfigLoggingApi( enabled: true, - // level: VeilidConfigLogLevel.debug, - level: VeilidConfigLogLevel.info, + level: logLevel, ignoreLogTargets: ignoreLogTargets, ))); platformConfigJson = platformConfig.toJson(); diff --git a/veilid-wasm/tests/package-lock.json b/veilid-wasm/tests/package-lock.json index b65a28d9..fb8b311d 100644 --- a/veilid-wasm/tests/package-lock.json +++ b/veilid-wasm/tests/package-lock.json @@ -21,7 +21,7 @@ }, "../pkg": { "name": "veilid-wasm", - "version": "0.3.1", + "version": "0.3.2", "dev": true, "license": "MPL-2.0" },