Skip to content
Snippets Groups Projects
Commit 8e3ab353 authored by Mark Grondona's avatar Mark Grondona
Browse files

o be sure to initialize conf->logfile from slurm.conf

parent 11134dc0
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment