Skip to content

Commit 98e2b16

Browse files
committed
job-archive: use f58 for jobid in log message
Problem: job-archive log a jobid in its decimal encoding, but jobids in this form aren't easily identifiable as jobids at first glance and take up more space in most cases. Update the job-archive module use f58 encoding for the logged jobid.
1 parent e06f20f commit 98e2b16

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/modules/job-archive/job-archive.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include "src/common/libutil/fsd.h"
2929
#include "src/common/libutil/tstat.h"
3030
#include "src/common/libutil/monotime.h"
31+
#include "src/common/libjob/idf58.h"
3132

3233
#define BUSY_TIMEOUT_DEFAULT 50
3334
#define BUFSIZE 1024
@@ -298,8 +299,8 @@ void job_info_lookup_continuation (flux_future_t *f, void *arg)
298299
"t_run", &t_run,
299300
"t_cleanup", &t_cleanup,
300301
"t_inactive", &t_inactive) < 0) {
301-
flux_log (ctx->h, LOG_ERR, "%s: parse job %ju error: %s",
302-
__FUNCTION__, (uintmax_t)id, error.text);
302+
flux_log (ctx->h, LOG_ERR, "%s: parse job %s error: %s",
303+
__FUNCTION__, idf58 (id), error.text);
303304
goto out;
304305
}
305306

0 commit comments

Comments
 (0)