From cff348800722f7dadf030ffe7494c2df714996e3 Mon Sep 17 00:00:00 2001 From: David Teigland Date: Dec 17 2019 17:26:55 +0000 Subject: sanlock: include full host name in log --- diff --git a/src/main.c b/src/main.c index a8a0bf5..5d2a9b6 100644 --- a/src/main.c +++ b/src/main.c @@ -1641,6 +1641,7 @@ static void helper_dead(int ci GNUC_UNUSED) static int do_daemon(void) { + struct utsname nodename; int fd, rv; run_dir = env_get(SANLOCK_RUN_DIR, DEFAULT_RUN_DIR); @@ -1700,7 +1701,9 @@ static int do_daemon(void) setup_uid_gid(); - log_warn("sanlock daemon started %s host %s", VERSION, our_host_name_global); + uname(&nodename); + + log_warn("sanlock daemon started %s host %s (%s)", VERSION, our_host_name_global, nodename.nodename); setup_priority();