conmon: Add info/warn to syslog as well
Signed-off-by: Mrunal Patel <mpatel@redhat.com>
This commit is contained in:
parent
fee5291495
commit
5c383d13d2
1 changed files with 2 additions and 0 deletions
|
@ -40,11 +40,13 @@
|
||||||
#define nwarn(fmt, ...) \
|
#define nwarn(fmt, ...) \
|
||||||
do { \
|
do { \
|
||||||
fprintf(stderr, "[conmon:w]: " fmt "\n", ##__VA_ARGS__); \
|
fprintf(stderr, "[conmon:w]: " fmt "\n", ##__VA_ARGS__); \
|
||||||
|
syslog(LOG_INFO, "conmon <nwarn>: " fmt " \n", ##__VA_ARGS__); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define ninfo(fmt, ...) \
|
#define ninfo(fmt, ...) \
|
||||||
do { \
|
do { \
|
||||||
fprintf(stderr, "[conmon:i]: " fmt "\n", ##__VA_ARGS__); \
|
fprintf(stderr, "[conmon:i]: " fmt "\n", ##__VA_ARGS__); \
|
||||||
|
syslog(LOG_INFO, "conmon <ninfo>: " fmt " \n", ##__VA_ARGS__); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define _cleanup_(x) __attribute__((cleanup(x)))
|
#define _cleanup_(x) __attribute__((cleanup(x)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue