shovel logs through api for flutter

This commit is contained in:
John Smith
2022-01-31 22:47:17 -05:00
parent 29b5ec5334
commit 65dabd09c7
11 changed files with 266 additions and 20 deletions

View File

@@ -5,6 +5,7 @@ pub use debug::*;
pub use crate::rpc_processor::InfoAnswer;
use crate::*;
use api_logger::*;
use attachment_manager::*;
use core::fmt;
use network_manager::NetworkManager;
@@ -1178,6 +1179,11 @@ impl VeilidAPI {
Ok(())
}
// Change api logging level if it is enabled
pub async fn change_api_log_level(&self, log_level: VeilidConfigLogLevel) {
ApiLogger::change_log_level(log_level.to_level_filter());
}
////////////////////////////////////////////////////////////////
// Direct Node Access (pretty much for testing only)