Browse Source

Log CFD timeout on start for debugging purposes

feature/force-stop-button
bonomat 3 years ago
parent
commit
0660f1ec8c
No known key found for this signature in database GPG Key ID: E5F8E74C672BC666
  1. 4
      daemon/src/maker.rs
  2. 4
      daemon/src/taker.rs

4
daemon/src/maker.rs

@ -140,6 +140,10 @@ async fn main() -> Result<()> {
logger::init(opts.log_level, opts.json).context("initialize logger")?; logger::init(opts.log_level, opts.json).context("initialize logger")?;
tracing::info!("Running version: {}", env!("VERGEN_GIT_SEMVER_LIGHTWEIGHT")); tracing::info!("Running version: {}", env!("VERGEN_GIT_SEMVER_LIGHTWEIGHT"));
tracing::info!(
"CFDs created with this release will settle after {} hours",
SETTLEMENT_INTERVAL.whole_hours()
);
let data_dir = opts let data_dir = opts
.data_dir .data_dir

4
daemon/src/taker.rs

@ -149,6 +149,10 @@ async fn main() -> Result<()> {
logger::init(opts.log_level, opts.json).context("initialize logger")?; logger::init(opts.log_level, opts.json).context("initialize logger")?;
tracing::info!("Running version: {}", env!("VERGEN_GIT_SEMVER_LIGHTWEIGHT")); tracing::info!("Running version: {}", env!("VERGEN_GIT_SEMVER_LIGHTWEIGHT"));
tracing::info!(
"CFDs created with this release will settle after {} hours",
SETTLEMENT_INTERVAL.whole_hours()
);
let data_dir = opts let data_dir = opts
.data_dir .data_dir

Loading…
Cancel
Save