Skip to content

Commit d86c080

Browse files
committed
API: libcrmcommon: Deprecate crm_warn()
Pacemaker should not be used for general-purpose logging. Ref T622 Signed-off-by: Reid Wahl <[email protected]>
1 parent 60d99bf commit d86c080

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

include/crm/common/logging.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,6 @@ pcmk__clip_log_level(int level)
346346
} \
347347
} while (0)
348348

349-
// NOTE: sbd (as of at least 1.5.2) uses this
350-
#define crm_warn(fmt, args...) qb_log(LOG_WARNING, fmt, ##args)
351-
352349
// NOTE: sbd (as of at least 1.5.2) uses this
353350
#define crm_notice(fmt, args...) qb_log(LOG_NOTICE, fmt, ##args)
354351

include/crm/common/logging_compat.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ extern "C" {
3232
//! \deprecated Do not use
3333
#define crm_err(fmt, args...) qb_log(LOG_ERR, fmt, ##args)
3434

35+
// NOTE: sbd (as of at least 1.5.2) uses this
36+
//! \deprecated Do not use
37+
#define crm_warn(fmt, args...) qb_log(LOG_WARNING, fmt, ##args)
38+
3539
#ifdef __cplusplus
3640
}
3741
#endif

0 commit comments

Comments
 (0)