Skip to content

Commit 9dd165d

Browse files
committed
Log: based: Don't log specially for PCMK__XA_CIB_UPDATE
As discussed in several recent commit messages, PCMK__XA_CIB_UPDATE used to get set when broadcasting changes while in legacy mode. We haven't supported that since 3.0.0, so PCMK__XA_CIB_UPDATE is set only for sync requests (in sync_our_cib()). I don't see any reason to treat the return code differently for sync operations than for other modifying operations. Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
1 parent 4853a97 commit 9dd165d

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

daemons/based/based_callbacks.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -736,21 +736,6 @@ log_op_result(const xmlNode *request, const cib__operation_t *operation, int rc,
736736
if (!pcmk__is_set(operation->flags, cib__op_attr_modifies)) {
737737
level = LOG_TRACE;
738738

739-
} else if (pcmk__xe_attr_is_true(request, PCMK__XA_CIB_UPDATE)) {
740-
switch (rc) {
741-
case pcmk_rc_ok:
742-
level = LOG_INFO;
743-
break;
744-
745-
case pcmk_rc_old_data:
746-
case pcmk_rc_diff_failed:
747-
level = LOG_TRACE;
748-
break;
749-
750-
default:
751-
level = LOG_ERR;
752-
}
753-
754739
} else if (rc != pcmk_rc_ok) {
755740
level = LOG_WARNING;
756741
}

0 commit comments

Comments
 (0)