From 3f52de891cba55230730602d41c3811cf1b17d96 Mon Sep 17 00:00:00 2001 From: Alexey Tikhonov Date: Dec 14 2019 01:04:09 +0000 Subject: util/server: improved debug at shutdown Relates: https://pagure.io/SSSD/sssd/issue/4088 Reviewed-by: Michal Židek --- diff --git a/src/util/server.c b/src/util/server.c index ee57ac1..3352406 100644 --- a/src/util/server.c +++ b/src/util/server.c @@ -242,7 +242,8 @@ void orderly_shutdown(int status) kill(-getpgrp(), SIGTERM); } #endif - if (status == 0) sss_log(SSS_LOG_INFO, "Shutting down"); + DEBUG(SSSDBG_IMPORTANT_INFO, "Shutting down (status = %d)", status); + sss_log(SSS_LOG_INFO, "Shutting down (status = %d)", status); exit(status); }