From 03c059cd9ed67f4bdbc6db9a09929cfa5551ea22 Mon Sep 17 00:00:00 2001 From: Taddes Date: Fri, 10 Jun 2022 15:42:51 -0400 Subject: [PATCH] refactor: replaced dbg! with trace macro (#1314) replaced dbg! with trace macro closes #1309 --- .circleci/config.yml | 13 +++++-------- syncstorage/src/web/handlers.rs | 2 +- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f7466037..13181e80 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,14 +6,11 @@ # version: 2.1 commands: - setup-rust: + display-rust: steps: - run: - name: Setup Rust - command: | - rustup install 1.60.0 - rustup default 1.60.0 - rustup update + name: Display Rust Version + command: rustc --version setup-rust-check: steps: @@ -169,7 +166,7 @@ jobs: password: $DOCKER_PASS steps: - checkout - - setup-rust + - display-rust - setup-rust-check - setup-gcp-grpc - rust-check @@ -210,7 +207,7 @@ jobs: echo "${DOCKER_PASS}" | docker login -u="${DOCKER_USER}" --password-stdin fi - checkout - - setup-rust + - display-rust - setup-python - setup-gcp-grpc - setup-mysql diff --git a/syncstorage/src/web/handlers.rs b/syncstorage/src/web/handlers.rs index 4e7514e9..9715f0f1 100644 --- a/syncstorage/src/web/handlers.rs +++ b/syncstorage/src/web/handlers.rs @@ -365,7 +365,7 @@ pub async fn post_collection_batch( if !coll.bsos.valid.is_empty() { // Append the data to the requested batch. let result = { - dbg!("Batch: Appending to {}", &new_batch.id); + trace!("Batch: Appending to {}", &new_batch.id); db.append_to_batch(params::AppendToBatch { user_id: coll.user_id.clone(), collection: coll.collection.clone(),