mirror of
https://github.com/YGGverse/agate.git
synced 2026-04-08 20:45:29 +00:00
also check logging environment variable
This commit is contained in:
parent
86e0fe665d
commit
055dceeece
2 changed files with 9 additions and 1 deletions
|
|
@ -80,9 +80,14 @@ LICENSE:text/plain;charset=UTF-8
|
||||||
gone.gmi:52 This file is no longer here, sorry.
|
gone.gmi:52 This file is no longer here, sorry.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Logging Verbosity
|
||||||
|
|
||||||
|
Agate uses the `env_logger` crate and allows you to set the logging verbosity by setting the default `RUST_LOG` environment variable. For more information, please see the [documentation of `env_logger`].
|
||||||
|
|
||||||
[Gemini]: https://gemini.circumlunar.space/
|
[Gemini]: https://gemini.circumlunar.space/
|
||||||
[Rust]: https://www.rust-lang.org/
|
[Rust]: https://www.rust-lang.org/
|
||||||
[home]: gemini://gem.limpet.net/agate/
|
[home]: gemini://gem.limpet.net/agate/
|
||||||
[rustup]: https://www.rust-lang.org/tools/install
|
[rustup]: https://www.rust-lang.org/tools/install
|
||||||
[source]: https://github.com/mbrubeck/agate
|
[source]: https://github.com/mbrubeck/agate
|
||||||
[crates.io]: https://crates.io/crates/agate
|
[crates.io]: https://crates.io/crates/agate
|
||||||
|
[documentation of `env_logger`]: https://docs.rs/env_logger/0.8
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,10 @@ use {
|
||||||
|
|
||||||
fn main() -> Result {
|
fn main() -> Result {
|
||||||
if !ARGS.silent {
|
if !ARGS.silent {
|
||||||
env_logger::Builder::new().parse_filters("info").init();
|
env_logger::Builder::new()
|
||||||
|
.filter_level(log::LevelFilter::Info)
|
||||||
|
.parse_default_env()
|
||||||
|
.init();
|
||||||
}
|
}
|
||||||
Runtime::new()?.block_on(async {
|
Runtime::new()?.block_on(async {
|
||||||
let mimetypes = Arc::new(Mutex::new(FileOptions::new(PresetMeta::Parameters(
|
let mimetypes = Arc::new(Mutex::new(FileOptions::new(PresetMeta::Parameters(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue