From a62e1338234547908225ff92e34a046778aecb65 Mon Sep 17 00:00:00 2001 From: Severin Siffert Date: Thu, 21 Dec 2023 14:55:54 +0100 Subject: [PATCH] log created-at-time --- src/dfx/src/commands/deploy.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/dfx/src/commands/deploy.rs b/src/dfx/src/commands/deploy.rs index 6bf027508d..6b438092a7 100644 --- a/src/dfx/src/commands/deploy.rs +++ b/src/dfx/src/commands/deploy.rs @@ -175,12 +175,12 @@ pub fn exec(env: &dyn Environment, opts: DeployOpts) -> DfxResult { let call_sender = CallSender::from(&opts.wallet) .map_err(|e| anyhow!("Failed to determine call sender: {}", e))?; let created_at_time = opts.created_at_time.or_else(|| { - Some( - SystemTime::now() - .duration_since(UNIX_EPOCH) - .unwrap() - .as_nanos() as u64, - ) + let now = SystemTime::now() + .duration_since(UNIX_EPOCH) + .unwrap() + .as_nanos() as u64; + info!(env.get_logger(), "created-at-time is {now}."); + Some(now) }); runtime.block_on(fetch_root_key_if_needed(&env))?;