This is an automated email from the git hooks/post-receive script.
teigland pushed a commit to branch master
in repository sanlock.
commit a5bbe3fb867fe9c83b8027c6ee1b01d470b61e5f
Author: David Teigland <teigland(a)redhat.com>
AuthorDate: Thu Jan 11 16:08:05 2024 -0600
sanlock: include startup message in syslog
---
src/main.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/main.c b/src/main.c
index 59e96a0..403e358 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1821,12 +1821,17 @@ static int do_daemon(void)
uname(&nodename);
- if (com.io_timeout != DEFAULT_IO_TIMEOUT || com.watchdog_fire_timeout !=
DEFAULT_WATCHDOG_FIRE_TIMEOUT)
+ if (com.io_timeout != DEFAULT_IO_TIMEOUT || com.watchdog_fire_timeout !=
DEFAULT_WATCHDOG_FIRE_TIMEOUT) {
log_warn("sanlock daemon started %s host %s (%s) io_timeout %u
watchdog_fire_timeout %u",
VERSION, our_host_name_global, nodename.nodename, com.io_timeout,
com.watchdog_fire_timeout);
- else
+ syslog(LOG_INFO, "sanlock daemon started %s host %s (%s) io_timeout %u
watchdog_fire_timeout %u",
+ VERSION, our_host_name_global, nodename.nodename, com.io_timeout,
com.watchdog_fire_timeout);
+ } else {
log_warn("sanlock daemon started %s host %s (%s)",
VERSION, our_host_name_global, nodename.nodename);
+ syslog(LOG_INFO, "sanlock daemon started %s host %s (%s)",
+ VERSION, our_host_name_global, nodename.nodename);
+ }
setup_priority();
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.