hypha: enhanced logging and always enable backtraces

This commit is contained in:
Alex Zenla committed 2024-01-30 20:22:48 -08:00
1 parent bb77e651e0
commit b6af5f54bd
3 files changed
+6 -5

No files matched your search

+2
View File
@@ -1,7 +1,9 @@
use std::env;
use anyhow::Result;
use hypha::container::init::ContainerInit;
fn main() -> Result<()> {
env::set_var("RUST_BACKTRACE", "1");
env_logger::init();
let mut container = ContainerInit::new();
container.init()?;
+2
View File
@@ -1,3 +1,4 @@
use std::env;
use anyhow::{anyhow, Result};
use clap::{Parser, Subcommand};
use hypha::ctl::Controller;
@@ -46,6 +47,7 @@ enum Commands {
}
fn main() -> Result<()> {
env::set_var("RUST_BACKTRACE", "1");
env_logger::init();
let args = ControllerArgs::parse();