From 315a0b90612a2b6c3b11d33b48385aa1352fa671 Mon Sep 17 00:00:00 2001 From: Nir Soffer Date: May 19 2020 14:26:41 +0000 Subject: sanlock: remove LOG_CONS from direct command --- diff --git a/src/main.c b/src/main.c index 8c6eef8..998ee58 100644 --- a/src/main.c +++ b/src/main.c @@ -3672,8 +3672,12 @@ static int do_direct(void) uint32_t cmd_flags = 0; int rv; - /* we want a record of any out-of-band changes to disk */ - openlog("sanlock-direct", LOG_CONS | LOG_PID, LOG_DAEMON); + /* + * We want a record of any out-of-band changes to disk in the system + * log. If /dev/log is missing, drop the message so it would not be + * logged to stderr. + */ + openlog("sanlock-direct", LOG_PID, LOG_DAEMON); setup_task_aio(&main_task, com.aio_arg, DIRECT_AIO_CB_SIZE); sprintf(main_task.name, "%s", "main_direct");