Skip to content

Commit

Permalink
chore: add debug message for delta (#654)
Browse files Browse the repository at this point in the history
* chore: add debug message for delta

* Update server/src/http/refresher/delta_refresher.rs

Co-authored-by: Christopher Kolstad <[email protected]>

---------

Co-authored-by: Christopher Kolstad <[email protected]>
  • Loading branch information
sjaanus and chriswk authored Jan 10, 2025
1 parent 1aa5afa commit 5e50a9e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion server/src/http/refresher/delta_refresher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ impl FeatureRefresher {
delta: ClientFeaturesDelta,
etag: Option<EntityTag>,
) {
debug!("Got updated client features delta. Updating features with {etag:?}");
let updated_len = delta.updated.len();
let removed_len = delta.removed.len();

debug!(
"Got updated client features delta. Updating features with {etag:?}, updated {updated_len}, removed {removed_len}"
);

let key = cache_key(refresh_token);
self.features_cache.apply_delta(key.clone(), &delta);
self.update_last_refresh(
Expand Down

0 comments on commit 5e50a9e

Please sign in to comment.