cspr-rad / kairos

Apache License 2.0
2 stars 0 forks source link

clean shutdown + default log level INFO #93

Closed Rom3dius closed 4 months ago

Rom3dius commented 4 months ago

Two changes:

  1. Implements CTRL+C and kill signal handler to kairos-server, which axum then uses to stop serving new connections and finish serving existing connections before shutting down.

  2. Sets the default logging level to INFO, otherwise you can't see any logs unless you use the RUST_LOG environment variable.

github-actions[bot] commented 4 months ago

File Coverage
All files 53% :x:
kairos-server/tests/transactions.rs 85% :white_check_mark:
kairos-test-utils/src/cctl/parsers.rs 66% :white_check_mark:
kairos-crypto/src/implementations/casper.rs 6% :x:
kairos-server/src/state/transactions/batch_state.rs 42% :x:
kairos-tx/src/asn.rs 48% :x:
kairos-tx/src/error.rs 0% :x:
kairos-server/src/config.rs 0% :x:
kairos-server/src/errors.rs 12% :x:
kairos-server/src/lib.rs 94% :white_check_mark:
kairos-server/src/state.rs 90% :white_check_mark:
kairos-server/src/utils.rs 22% :x:
kairos-test-utils/src/cctl.rs 87% :white_check_mark:
kairos-server/src/routes/deposit.rs 88% :white_check_mark:
kairos-server/src/routes/transfer.rs 90% :white_check_mark:
kairos-server/src/state/transactions.rs 40% :x:
kairos-server/src/state/trie.rs 35% :x:

Minimum allowed coverage is 60%

Generated by :monkey: cobertura-action against 2dd7947d3421d9ec40845647fb383274a19d09f9