node: Fix logging for skipped refs

We were using the wrong condition.
This commit is contained in:
cloudhead 2024-04-04 12:24:49 +02:00
parent a5212a7a88
commit 51e64cfa8b
No known key found for this signature in database
1 changed files with 3 additions and 3 deletions

View File

@ -1006,10 +1006,10 @@ where
info!(target: "service", "Fetched {rid} from {remote} successfully");
for update in &updated {
if update.old() != update.new() {
debug!(target: "service", "Ref updated: {update} for {rid}");
} else {
if update.is_skipped() {
trace!(target: "service", "Ref skipped: {update} for {rid}");
} else {
debug!(target: "service", "Ref updated: {update} for {rid}");
}
}
self.emitter.emit(Event::RefsFetched {