mirror of
https://github.com/mikedilger/chorus.git
synced 2026-11-19 15:24:25 +00:00
Setup logging (log, env_logger)
This commit is contained in:
1 parent
4d9de16eba
commit
4fe854cdd4
3 files changed
+151
-1
No files matched your search
+4
-1
@@ -10,6 +10,8 @@ use std::io::Read;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<(), Error> {
|
||||
env_logger::init();
|
||||
|
||||
// Get args (config path)
|
||||
let mut args = env::args();
|
||||
if args.len() <= 1 {
|
||||
@@ -23,8 +25,9 @@ async fn main() -> Result<(), Error> {
|
||||
let mut contents = String::new();
|
||||
file.read_to_string(&mut contents)?;
|
||||
let config: Config = ron::from_str(&contents)?;
|
||||
log::debug!("Loaded config file.");
|
||||
|
||||
println!("No main yet.");
|
||||
log::error!("No main yet.");
|
||||
|
||||
Ok(())
|
||||
}
|
||||
Reference in new issue
Block a user