From 8e3ab353bbbba02183ada6e88a02497cb4c8d09c Mon Sep 17 00:00:00 2001 From: Mark Grondona <mgrondona@llnl.gov> Date: Tue, 11 Feb 2003 22:04:17 +0000 Subject: [PATCH] o be sure to initialize conf->logfile from slurm.conf --- src/slurmd/slurmd.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/slurmd/slurmd.c b/src/slurmd/slurmd.c index 497759bb842..f119011c4c3 100644 --- a/src/slurmd/slurmd.c +++ b/src/slurmd/slurmd.c @@ -433,6 +433,7 @@ _read_config() _free_and_set(&conf->prolog, xstrdup(conf->cf.prolog)); _free_and_set(&conf->tmpfs, xstrdup(conf->cf.tmp_fs)); _free_and_set(&conf->spooldir, xstrdup(conf->cf.slurmd_spooldir)); + _free_and_set(&conf->logfile, xstrdup(conf->cf.slurmd_logfile)); _free_and_set(&conf->pidfile, xstrdup(conf->cf.slurmd_pidfile)); _free_and_set(&conf->pubkey, path_pubkey); @@ -785,6 +786,8 @@ _kill_old_slurmd(void) /* Reset slurmctld logging based upon configuration parameters */ static void _update_logging(void) { + info("In update logging"); + /* * Initialize debug level if not already set */ @@ -795,6 +798,8 @@ static void _update_logging(void) } + info("conf->debug_level = %d", conf->debug_level); + conf->log_opts.stderr_level = conf->debug_level; conf->log_opts.logfile_level = conf->debug_level; conf->log_opts.syslog_level = conf->debug_level; @@ -806,5 +811,7 @@ static void _update_logging(void) } else conf->log_opts.syslog_level = LOG_LEVEL_QUIET; + info("conf->logfile = [%s]", conf->logfile); + log_alter(conf->log_opts, SYSLOG_FACILITY_DAEMON, conf->logfile); } -- GitLab