Skip to content
This repository has been archived by the owner on Jun 3, 2020. It is now read-only.

How to control log level of tmkms #353

Open
whunmr opened this issue Sep 17, 2019 · 3 comments
Open

How to control log level of tmkms #353

whunmr opened this issue Sep 17, 2019 · 3 comments

Comments

@whunmr
Copy link

whunmr commented Sep 17, 2019

I'd like to install the tmkms as a service, which running long enough.
so I tried to let kms only print error level logs.
but seems RUST_LOG=error not works.

Any suggestions? Thanks.

j@j ~ $ RUST_LOG=error ./tmkms start -c tmkms.toml
13:45:07 [info] tmkms 0.6.3 starting up...
13:45:07 [info] [keyring:softsign] added consensus key coinexvalconspub1zcjduepq37l2ulws68yhe5aaeh4sk4q6r78chxcd3zse2ewr9nplpzjvrcxqgn25jz
13:45:07 [info] KMS node ID: 25150CF2E0400E57AB29475C78E28836C247D985
13:45:07 [error] [coinexdex-test1@tcp://127.0.0.1:26658] I/O error: Connection refused (os error 111)
13:45:08 [info] KMS node ID: 25150CF2E0400E57AB29475C78E28836C247D985
13:45:08 [error] [coinexdex-test1@tcp://127.0.0.1:26658] I/O error: Connection refused (os error 111)
13:45:09 [info] KMS node ID: 25150CF2E0400E57AB29475C78E28836C247D985
13:45:09 [error] [coinexdex-test1@tcp://127.0.0.1:26658] I/O error: Connection refused (os error 111)
^C
@tarcieri
Copy link
Contributor

Right now there is only a coarse grained option to do debug logging via the -v command-line argument. I agree it'd be good to offer finer-grained control of the loglevel via command line options and/or configuration.

@whunmr
Copy link
Author

whunmr commented Sep 18, 2019

Got it, Thanks for reply @tarcieri

@tarcieri
Copy link
Contributor

Note that with v0.7.0 logging is now handled by tracing. The framework supports fine-grained loglevels but these still aren't exposed in any user-facing way.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants