Skip to content

Conversation

sebastianwebber
Copy link
Contributor

added another option to disable colors - if needed:

❯ cargo run -- --help Finished dev [unoptimized + debuginfo] target(s) in 0.21s Running `target/debug/pgcat --help` PgCat: Nextgen PostgreSQL Pooler Usage: pgcat [OPTIONS] [CONFIG_FILE] Arguments: [CONFIG_FILE] [env: CONFIG_FILE=] [default: pgcat.toml] Options: -l, --log-level <LOG_LEVEL> [env: LOG_LEVEL=] [default: INFO] -F, --log-format <LOG_FORMAT> [env: LOG_FORMAT=] [default: text] [possible values: text, structured, debug] -n, --no-color disable colors in the log output [env: NO_COLOR=] -h, --help Print help -V, --version Print version 

Also moved the tracing stuff to a separate crate.

this commit adds a new option to disable colors in the terminal and also moves the logger configuration to a different crate. Signed-off-by: Sebastian Webber <sebastian@swebber.me>
@sebastianwebber sebastianwebber force-pushed the sebastian/add-option-disable-colors branch from b56899c to 5b74b2c Compare July 20, 2023 03:48
@levkk
Copy link
Contributor

levkk commented Jul 20, 2023

Absolutely!

@levkk levkk merged commit 19cb8a3 into postgresml:main Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants