Warp: Remove warp drive engaged

Created on 29 Nov 2019  路  3Comments  路  Source: seanmonstar/warp

Hey,

Is it possible to remove or change "warp drive engaged"?

Best regards

Most helpful comment

Oh heh, that was me having some fun while writing the library. Is it actually problematic? How come?

All 3 comments

As a "workaround" (I personally don't mind the message), I have a CLI arg, verbosity, and configure my logger like:

#[derive(Debug, structopt::StructOpt)]
struct Args {
    /// Increases the verbosity of logging.
    #[structopt(short = "v", long = "verbose", parse(from_occurrences))]
    pub verbosity: usize,

    // ...
}

#[paw::main]
fn main(args: Args) -> Result<()> {
    let mut logger = stderrlog::new();
    if args.verbosity < 3 {
        logger.module(module_path!()).verbosity(2 + args.verbosity);
    } else {
        logger.verbosity(args.verbosity);
    }
    logger.init().unwrap();

    // ...
}

Oh heh, that was me having some fun while writing the library. Is it actually problematic? How come?

Hey hey

It's fun, but if you can add as a feature it could be better!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alexreg picture alexreg  路  7Comments

hwchen picture hwchen  路  3Comments

seanmonstar picture seanmonstar  路  8Comments

Newbytee picture Newbytee  路  7Comments

weiznich picture weiznich  路  7Comments