patch-ac 1.42 KB
Newer Older
1 2 3 4
$NetBSD$

Use NOTICE for requests as well

Kolbjørn Barmen's avatar
Kolbjørn Barmen committed
5 6 7
--- a/radsecproxy.c	2017-08-02 23:52:38.000000000 +0200
+++ b/radsecproxy.c	2017-08-03 00:02:37.000000000 +0200
@@ -1287,12 +1287,12 @@
8 9 10 11 12 13 14 15 16 17 18 19 20 21
 
     attr = radmsg_gettype(msg, RAD_Attr_User_Name);
     if (!attr) {
-	debug(DBG_INFO, "acclog: accounting-request from client %s (%s) without username attribute", from->conf->name, addr2string(from->addr));
+	debug(DBG_NOTICE, "Accounting-Request from client %s (%s) without username attribute", from->conf->name, addr2string(from->addr));
 	return;
     }
     username = radattr2ascii(attr);
     if (username) {
-	debug(DBG_INFO, "acclog: accounting-request from client %s (%s) with username: %s", from->conf->name, addr2string(from->addr), username);
+	debug(DBG_NOTICE, "Accounting-Request from client %s (%s) with username: %s", from->conf->name, addr2string(from->addr), username);
 
 	free(username);
     }
Kolbjørn Barmen's avatar
Kolbjørn Barmen committed
22
@@ -1526,7 +1526,7 @@
23 24 25
     userascii = radattr2ascii(attr);
     if (!userascii)
 	goto rmclrqexit;
Kolbjørn Barmen's avatar
Kolbjørn Barmen committed
26
-    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));
27 28 29 30
+    debug(DBG_NOTICE, "%s from client %s (%s) with username: %s", radmsgtype2string(msg->code), from->conf->name, addr2string(from->addr), userascii);
 
     /* will return with lock on the realm */
     to = findserver(&realm, attr, msg->code == RAD_Accounting_Request);