Skip to content

Commit 6f48275

Browse files
committed
libzmqutil: change auth log format used by broker
Problem: the broker logs a terse message displaying the certificate name without adornment when a peer attempts to authenticate, but the certificate name defaults to the name of the host that generated it, which could easily be confused with the peer hostname. Print cert-name=NAME instead of just the bare name to hopefully make things a bit clearer. Fixes #4341
1 parent 0653904 commit 6f48275

File tree

1 file changed

+5
-1
lines changed
  • src/common/libzmqutil

1 file changed

+5
-1
lines changed

src/common/libzmqutil/zap.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,11 @@ static void zap_cb (flux_reactor_t *r,
127127
}
128128
if (!name)
129129
name = "unknown";
130-
logger (zap, log_level, "overlay auth %s %s", name, status_text);
130+
logger (zap,
131+
log_level,
132+
"overlay auth cert-name=%s %s",
133+
name,
134+
status_text);
131135

132136
if (!(rep = zmsg_new ()))
133137
goto done;

0 commit comments

Comments
 (0)