using ROCLS_LOG for logging env var

Signed-off-by: faldor20 <eli.jambu@yahoo.com>
This commit is contained in:
Eli Dowling 2023-12-27 16:02:32 +10:00 committed by faldor20
parent 740222e51a
commit a6549f3fd3
No known key found for this signature in database
GPG key ID: F2216079B890CD57
3 changed files with 3 additions and 4 deletions

View file

@ -79,6 +79,6 @@ If you're using coc.nvim and want to use the configuration above, be sure to als
If you want to debug the server, use [debug_server.sh](./debug_server.sh)
instead of the direct binary.
If you would like to enable debug logging set the `RUST_LOG` environment variable to `debug` or `trace` for even more logs.
eg: `RUST_LOG=debug`
If you would like to enable debug logging set the `ROCLS_LOG` environment variable to `debug` or `trace` for even more logs.
eg: `ROCLS_LOG=debug`

View file

@ -1 +0,0 @@

View file

@ -338,7 +338,7 @@ where
#[tokio::main(flavor = "multi_thread")]
async fn main() {
env_logger::init();
env_logger::Builder::from_env("ROCLS_LOG").init();
let stdin = tokio::io::stdin();
let stdout = tokio::io::stdout();