Skip to content

Commit c06f701

Browse files
committed
API: libcrmcommon: Deprecate crm_notice()
Pacemaker should not be used for general-purpose logging. Ref T622 Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
1 parent cc2f6bb commit c06f701

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_notice(fmt, args...) qb_log(LOG_NOTICE, fmt, ##args)
351-
352349
#define crm_info(fmt, args...) qb_log(LOG_INFO, fmt, ##args)
353350
//
354351
// NOTE: sbd (as of at least 1.5.2) uses this

include/crm/common/logging_compat.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ extern "C" {
3636
//! \deprecated Do not use
3737
#define crm_warn(fmt, args...) qb_log(LOG_WARNING, fmt, ##args)
3838

39+
// NOTE: sbd (as of at least 1.5.2) uses this
40+
//! \deprecated Do not use
41+
#define crm_notice(fmt, args...) qb_log(LOG_NOTICE, fmt, ##args)
42+
3943
#ifdef __cplusplus
4044
}
4145
#endif

0 commit comments

Comments
 (0)