add: some printing
This commit is contained in:
@@ -41,10 +41,16 @@ async fn main() -> anyhow::Result<()> {
|
|||||||
let conf = if let Some(conf) = File::try_open(&args.conf) {
|
let conf = if let Some(conf) = File::try_open(&args.conf) {
|
||||||
conf::Config::from_toml_file(&mut conf?)?
|
conf::Config::from_toml_file(&mut conf?)?
|
||||||
} else {
|
} else {
|
||||||
|
println!(
|
||||||
|
"\x1b[30;43mWRN\x1b[0m: \x1b[35m{:?}\x1b[0m not found, using default configuration",
|
||||||
|
args.conf.display()
|
||||||
|
);
|
||||||
conf::Config::default()
|
conf::Config::default()
|
||||||
};
|
};
|
||||||
|
|
||||||
println!("{conf:#?}");
|
// o tsukare su-mmer, awaaai yumeniii shiii oooo-tome, wa, hitoshireeeezu, cryyyyying
|
||||||
|
// (idek japanese but im vibing)
|
||||||
|
println!("\n\x1b[1;3;4;33mConfiguration\x1b[0m: {conf:#?}\n");
|
||||||
|
|
||||||
server::start_app(args, conf).await?;
|
server::start_app(args, conf).await?;
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ pub async fn start_app(args: crate::args::Args, config: crate::conf::Config) ->
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
println!(
|
println!(
|
||||||
"\x1b[32mINF\x1b[0m: Trying to listen on {:?}",
|
"\x1b[34mINF\x1b[0m: Trying to listen on \x1b[35m{:?}\x1b[0m",
|
||||||
app.config.server.listen
|
app.config.server.listen
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user