patch-ac 1.33 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	2016-08-03 15:27:28.504000000 +0200
+++ b/radsecproxy.c	2016-08-03 15:29:01.328000000 +0200
@@ -1284,12 +1284,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
@@ -1523,7 +1523,7 @@
23
24
25
26
27
28
29
30
     userascii = radattr2ascii(attr);
     if (!userascii)
 	goto rmclrqexit;
-    debug(DBG_DBG, "%s with username: %s", radmsgtype2string(msg->code), userascii);
+    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);