@@ -261,18 +261,24 @@ update_attr_on_host(attribute_t *a, const pcmk__node_status_t *peer,
261261 * kept in sync.
262262 */
263263 v = g_hash_table_lookup (a -> values , attrd_cluster -> priv -> node_name );
264- crm_notice ("%s[%s]: local value '%s' takes priority over '%s' from %s" ,
265- attr , host , readable_value (v ), value , peer -> name );
264+ pcmk__notice ("%s[%s]: local value '%s' takes priority over '%s' from "
265+ "%s" ,
266+ attr , host , readable_value (v ), value , peer -> name );
266267 attrd_broadcast_value (a , v );
267268
268269 } else if (changed ) {
269- crm_notice ("Setting %s[%s]%s%s: %s -> %s "
270- QB_XS " from %s with %s write delay and node XML ID %s" ,
271- attr , host , a -> set_type ? " in " : "" ,
272- pcmk__s (a -> set_type , "" ), readable_value (v ),
273- pcmk__s (value , "(unset)" ), peer -> name ,
274- (a -> timeout_ms == 0 )? "no" : pcmk__readable_interval (a -> timeout_ms ),
275- pcmk__s (node_xml_id , "unknown" ));
270+ const char * timeout_s = "no" ;
271+
272+ if (a -> timeout_ms != 0 ) {
273+ timeout_s = pcmk__readable_interval (a -> timeout_ms );
274+ }
275+
276+ pcmk__notice ("Setting %s[%s]%s%s: %s -> %s "
277+ QB_XS " from %s with %s write delay and node XML ID %s" ,
278+ attr , host , ((a -> set_type != NULL )? " in " : "" ),
279+ pcmk__s (a -> set_type , "" ), readable_value (v ),
280+ pcmk__s (value , "(unset)" ), peer -> name , timeout_s ,
281+ pcmk__s (node_xml_id , "unknown" ));
276282 pcmk__str_update (& v -> current , value );
277283 attrd_set_attr_flags (a , attrd_attr_changed );
278284
@@ -528,9 +534,9 @@ attrd_peer_remove(const char *host, bool uncache, const char *source)
528534 GHashTableIter aIter ;
529535
530536 CRM_CHECK (host != NULL , return );
531- crm_notice ("Removing all %s attributes for node %s "
532- QB_XS " %s reaping node from cache" ,
533- host , source , (uncache ? "and" : "without" ));
537+ pcmk__notice ("Removing all %s attributes for node %s "
538+ QB_XS " %s reaping node from cache" ,
539+ host , source , (uncache ? "and" : "without" ));
534540
535541 g_hash_table_iter_init (& aIter , attributes );
536542 while (g_hash_table_iter_next (& aIter , NULL , (gpointer * ) & a )) {
0 commit comments