Skip to content

Commit

Permalink
Use adaptive format for coloring when possible
Browse files Browse the repository at this point in the history
  • Loading branch information
darrell-roberts committed Nov 13, 2024
1 parent 57166ca commit 0248751
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use std::{
use anyhow::{anyhow, Context};
use clap::{CommandFactory, Parser};
use clap_complete::Generator;
use flexi_logger::detailed_format;
use flexi_logger::AdaptiveFormat;
use ignore::{overrides::OverrideBuilder, types::TypesBuilder, WalkBuilder};
use log::{error, info};
use rayon::iter::ParallelBridge;
Expand All @@ -39,8 +39,8 @@ use crate::{

fn main() -> anyhow::Result<()> {
flexi_logger::Logger::try_with_env_or_str("info")?
.format_for_stdout(detailed_format)
.format_for_stderr(detailed_format)
.adaptive_format_for_stderr(AdaptiveFormat::Detailed)
.adaptive_format_for_stdout(AdaptiveFormat::Detailed)
.start()?;

let options = Args::parse();
Expand Down

0 comments on commit 0248751

Please sign in to comment.