aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorEllie Huxtable <e@elm.sh>2021-04-21 18:13:51 +0100
committerEllie Huxtable <e@elm.sh>2021-04-21 21:26:44 +0100
commit4a50ce366639ca9dac7324d6a47d6a0e6c7fccdf (patch)
tree7ffd8848f675e1377f750cc0757768d074a5ac05 /src/main.rs
parentBump rusqlite from 0.25.0 to 0.25.1 (#35) (diff)
downloadatuin-4a50ce366639ca9dac7324d6a47d6a0e6c7fccdf.zip
Bugfixes, show time ago, perf improvements
Also allow unique listing and more ergonomic cwd usage
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/main.rs b/src/main.rs
index c116d1f3..184c0323 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -2,7 +2,6 @@
#![allow(clippy::use_self)] // not 100% reliable
use eyre::Result;
-use fern::colors::{Color, ColoredLevelConfig};
use structopt::{clap::AppSettings, StructOpt};
#[macro_use]
@@ -32,23 +31,7 @@ impl Atuin {
#[tokio::main]
async fn main() -> Result<()> {
- let colors = ColoredLevelConfig::new()
- .warn(Color::Yellow)
- .error(Color::Red);
-
- fern::Dispatch::new()
- .format(move |out, message, record| {
- out.finish(format_args!(
- "{} [{}] {}",
- chrono::Local::now().to_rfc3339(),
- colors.color(record.level()),
- message
- ))
- })
- .level(log::LevelFilter::Info)
- .level_for("sqlx", log::LevelFilter::Warn)
- .chain(std::io::stdout())
- .apply()?;
+ pretty_env_logger::init();
Atuin::from_args().run().await
}