Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions orte/mca/notifier/base/notifier_base_fns.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,11 @@ void orte_notifier_base_report(int sd, short args, void *cbdata)
const char* orte_notifier_base_sev2str(orte_notifier_severity_t severity)
{
switch (severity) {
case ORTE_NOTIFIER_EMERG: return "EMERG"; break;
case ORTE_NOTIFIER_EMERG: return "EMERGENCY"; break;
case ORTE_NOTIFIER_ALERT: return "ALERT"; break;
case ORTE_NOTIFIER_CRIT: return "CRIT"; break;
case ORTE_NOTIFIER_CRIT: return "CRITICAL"; break;
case ORTE_NOTIFIER_ERROR: return "ERROR"; break;
case ORTE_NOTIFIER_WARN: return "WARN"; break;
case ORTE_NOTIFIER_WARN: return "WARNING"; break;
case ORTE_NOTIFIER_NOTICE: return "NOTICE"; break;
case ORTE_NOTIFIER_INFO: return "INFO"; break;
case ORTE_NOTIFIER_DEBUG: return "DEBUG"; break;
Expand Down
6 changes: 4 additions & 2 deletions orte/mca/notifier/syslog/notifier_syslog_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ static void mylog(orte_notifier_request_t *req)
/* trim the newline */
tod[strlen(tod)] = '\0';

syslog(req->severity, "[%s]%s JOBID %s REPORTS ERROR %s: %s", tod,
syslog(req->severity, "[%s]%s %s: JOBID %s REPORTS ERROR %s: %s", tod,
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME),
orte_notifier_base_sev2str(req->severity),
ORTE_JOBID_PRINT(req->jdata->jobid),
orte_job_state_to_str(req->state),
(NULL == req->msg) ? "<N/A>" : req->msg);
Expand All @@ -104,8 +105,9 @@ static void myevent(orte_notifier_request_t *req)
/* trim the newline */
tod[strlen(tod)] = '\0';

syslog(req->severity, "[%s]%s SET EVENT : %s", tod,
syslog(req->severity, "[%s]%s %s SYSTEM EVENT : %s", tod,
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME),
orte_notifier_base_sev2str(req->severity),
(NULL == req->msg) ? "<N/A>" : req->msg);
}

Expand Down