refactor checkpoint

This commit is contained in:
John Smith
2022-06-07 21:31:05 -04:00
parent 182af30b97
commit 1d8c63786a
28 changed files with 822 additions and 626 deletions

View File

@@ -139,11 +139,11 @@ pub fn get_veilid_state() -> Promise {
}
#[wasm_bindgen()]
pub fn change_log_level(log_level: String) -> Promise {
pub fn change_api_log_level(log_level: String) -> Promise {
wrap_api_future(async move {
let veilid_api = get_veilid_api()?;
let log_level: veilid_core::VeilidConfigLogLevel = deserialize_json(&log_level)?;
veilid_api.change_log_level(log_level).await;
veilid_api.change_api_log_level(log_level).await;
APIRESULT_UNDEFINED
})
}