Skip to content

Commit

Permalink
Expose any errors that occur while expanding onto a new subnet (#7094)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles authored Dec 19, 2024
1 parent fedac21 commit 91631eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions backend/canisters/registry/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [unreleased]

### Changed

- Expose any errors that occur while expanding onto a new subnet ([#7094](https://github.com/open-chat-labs/open-chat/pull/7094))

## [[2.0.1536](https://github.com/open-chat-labs/open-chat/releases/tag/v2.0.1536-registry)] - 2024-12-19

### Fixed
Expand Down
3 changes: 2 additions & 1 deletion backend/canisters/registry/impl/src/timer_job_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use ic_cdk::api::call::{CallResult, RejectionCode};
use ic_cdk::api::management_canister::main::{CanisterSettings, UpdateSettingsArgument};
use ic_ledger_types::{AccountIdentifier, Memo, Subaccount, Timestamp, Tokens, TransferArgs, DEFAULT_FEE};
use serde::{Deserialize, Serialize};
use tracing::error;
use types::{CanisterId, TimestampMillis};

const MEMO_CREATE_CANISTER: Memo = Memo(0x41455243); // == 'CREA'
Expand Down Expand Up @@ -54,7 +55,7 @@ impl ExpandOntoSubnetJob {
let delay = match self.process_step_inner(next_step, now).await {
Ok(Some(false)) => 0,
Err(error) => {
ic_cdk::println!("ExpandOntoSubnet processing failed: {:?}", error);
error!("ExpandOntoSubnet processing failed: {:?}", error);
MINUTE_IN_MS
}
Ok(Some(true)) | Ok(None) => return,
Expand Down

0 comments on commit 91631eb

Please sign in to comment.