Skip to content
Snippets Groups Projects
Commit ecde67e0 authored by Christopher J. Morrone's avatar Christopher J. Morrone
Browse files

Have the slurmd print its NodeName in log messages rather than NodeHostname.

parent 22582fa3
No related branches found
No related tags found
No related merge requests found
...@@ -1467,7 +1467,7 @@ _slurmd_job_log_init(slurmd_job_t *job) ...@@ -1467,7 +1467,7 @@ _slurmd_job_log_init(slurmd_job_t *job)
if (conf->log_opts.stderr_level > LOG_LEVEL_DEBUG3) if (conf->log_opts.stderr_level > LOG_LEVEL_DEBUG3)
conf->log_opts.stderr_level = LOG_LEVEL_DEBUG3; conf->log_opts.stderr_level = LOG_LEVEL_DEBUG3;
snprintf(argv0, sizeof(argv0), "slurmd[%s]", conf->hostname); snprintf(argv0, sizeof(argv0), "slurmd[%s]", conf->node_name);
/* /*
* reinitialize log * reinitialize log
*/ */
......
...@@ -209,7 +209,6 @@ _init_from_slurmd(int sock, char **argv, ...@@ -209,7 +209,6 @@ _init_from_slurmd(int sock, char **argv,
conf->log_opts.stderr_level = conf->debug_level; conf->log_opts.stderr_level = conf->debug_level;
conf->log_opts.logfile_level = conf->debug_level; conf->log_opts.logfile_level = conf->debug_level;
conf->log_opts.syslog_level = conf->debug_level; conf->log_opts.syslog_level = conf->debug_level;
/* forward the log options to slurmstepd */
//log_alter(conf->log_opts, 0, NULL); //log_alter(conf->log_opts, 0, NULL);
/* /*
* If daemonizing, turn off stderr logging -- also, if * If daemonizing, turn off stderr logging -- also, if
...@@ -225,7 +224,7 @@ _init_from_slurmd(int sock, char **argv, ...@@ -225,7 +224,7 @@ _init_from_slurmd(int sock, char **argv,
} else } else
conf->log_opts.syslog_level = LOG_LEVEL_QUIET; conf->log_opts.syslog_level = LOG_LEVEL_QUIET;
log_init(argv[0],conf->log_opts, LOG_DAEMON, conf->logfile); log_init(argv[0], conf->log_opts, LOG_DAEMON, conf->logfile);
/* acct info */ /* acct info */
jobacct_g_startpoll(conf->job_acct_freq); jobacct_g_startpoll(conf->job_acct_freq);
......
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