nervosnetwork / ckb-light-client

CKB light client reference implementation
MIT License
14 stars 16 forks source link

Only the error log is expected to write to stderr. #137

Closed yanguoyu closed 1 year ago

yanguoyu commented 1 year ago

Now all logs are written to stderr.

If run like this RUST_LOG=info,ckb_light_client=info ./ckb-light-client run --config-file "./ckb_light.toml" 1>./log.log 2>./error.log

I will find all the logs are in error.log, they include the INFO log.