Skip to content

Commit

Permalink
add tardis log conf (#511)
Browse files Browse the repository at this point in the history
  • Loading branch information
RWDai authored Oct 27, 2023
1 parent 77a60db commit 099b01d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions services/spacegate/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
use spacegate_lib::register_lib_filter;
use tardis::basic::result::TardisResult;
use tardis::{tokio, TardisFuns};
use tardis::config::config_dto::{FrameworkConfig, LogConfig, TardisConfig};

#[tokio::main]
async fn main() -> TardisResult<()> {
TardisFuns::init_log()?;
TardisFuns::init_conf(TardisConfig::builder().fw(FrameworkConfig::builder().log(LogConfig::default()).build()).build()).await?;
let namespaces = std::env::args().nth(1).map(Some).unwrap_or(None);
register_lib_filter();
spacegate_kernel::startup(true, namespaces, None).await?;
Expand Down

0 comments on commit 099b01d

Please sign in to comment.