summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Mauchle <fabian.mauchle@switch.ch>2017-03-24 16:40:49 +0100
committerLinus Nordberg <linus@nordu.net>2017-08-01 17:48:05 +0200
commit3e7aa7fb7fc9dba03111da034292d124efaf8759 (patch)
treee95e2187238d8ad031560c474b84f689155d773b
parent3d9be8431e7644e440c58b7132563db0ace0267b (diff)
add msg-id to debug log outputmauchle-radsecproxy-60
-rw-r--r--radsecproxy.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/radsecproxy.c b/radsecproxy.c
index fe76f7c..75f936e 100644
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -1447,7 +1447,7 @@ int radsrv(struct request *rq) {
userascii = radattr2ascii(attr);
if (!userascii)
goto rmclrqexit;
- debug(DBG_DBG, "%s with username: %s", radmsgtype2string(msg->code), userascii);
+ debug(DBG_DBG, "radsrv: got %s (id %d) with username: %s from client %s (%s)", radmsgtype2string(msg->code), msg->id, userascii, from->conf->name, addr2string(from->addr));
/* will return with lock on the realm */
to = findserver(&realm, attr, msg->code == RAD_Accounting_Request);
@@ -1694,8 +1694,7 @@ void replyh(struct server *server, unsigned char *buf) {
if (ttlres == -1 && (options.addttl || from->conf->addttl))
addttlattr(msg, options.ttlattrtype, from->conf->addttl ? from->conf->addttl : options.addttl);
- debug(msg->code == RAD_Access_Accept || msg->code == RAD_Access_Reject || msg->code == RAD_Accounting_Response ? DBG_WARN : DBG_INFO,
- "replyh: passing %s to client %s (%s)", radmsgtype2string(msg->code), from->conf->name, addr2string(from->addr));
+ debug(DBG_DBG, "replyh: passing %s (id %d) to client %s (%s)", radmsgtype2string(msg->code), msg->id, from->conf->name, addr2string(from->addr));
radmsg_free(rqout->rq->msg);
rqout->rq->msg = msg;