summaryrefslogtreecommitdiff
path: root/accel-pptpd/radius
diff options
context:
space:
mode:
authorKozlov Dmitry <dima@server>2010-11-29 17:45:58 +0300
committerKozlov Dmitry <dima@server>2010-11-29 17:45:58 +0300
commitf96198bf149203e1ddca8f2c381cf4b9849cdda9 (patch)
treef4b4c10a7b489f693ecb6301d1584de22e4e90a5 /accel-pptpd/radius
parent3a293aabc6e43319761a1f3020559873aa714334 (diff)
downloadaccel-ppp-f96198bf149203e1ddca8f2c381cf4b9849cdda9.tar.gz
accel-ppp-f96198bf149203e1ddca8f2c381cf4b9849cdda9.zip
log: introduced additional log level (3) which shows only minimum of information messages
Diffstat (limited to 'accel-pptpd/radius')
-rw-r--r--accel-pptpd/radius/acct.c4
-rw-r--r--accel-pptpd/radius/dm_coa.c16
-rw-r--r--accel-pptpd/radius/req.c8
3 files changed, 14 insertions, 14 deletions
diff --git a/accel-pptpd/radius/acct.c b/accel-pptpd/radius/acct.c
index cc0fdea..cff2d09 100644
--- a/accel-pptpd/radius/acct.c
+++ b/accel-pptpd/radius/acct.c
@@ -86,8 +86,8 @@ static int rad_acct_read(struct triton_md_handler_t *h)
rad_packet_free(req->reply);
req->reply = pack;
if (conf_interim_verbose) {
- log_ppp_info("recv ");
- rad_packet_print(req->reply, log_ppp_info);
+ log_ppp_info2("recv ");
+ rad_packet_print(req->reply, log_ppp_info2);
}
}
diff --git a/accel-pptpd/radius/dm_coa.c b/accel-pptpd/radius/dm_coa.c
index 5edbdd9..d78f91a 100644
--- a/accel-pptpd/radius/dm_coa.c
+++ b/accel-pptpd/radius/dm_coa.c
@@ -77,8 +77,8 @@ static int dm_coa_send_ack(int fd, struct rad_packet_t *req, struct sockaddr_in
dm_coa_set_RA(reply, conf_dm_coa_secret);
if (conf_verbose) {
- log_ppp_info("send ");
- rad_packet_print(reply, log_ppp_info);
+ log_ppp_info2("send ");
+ rad_packet_print(reply, log_ppp_info2);
}
rad_packet_send(reply, fd, addr);
@@ -112,8 +112,8 @@ static int dm_coa_send_nak(int fd, struct rad_packet_t *req, struct sockaddr_in
dm_coa_set_RA(reply, conf_dm_coa_secret);
if (conf_verbose) {
- log_ppp_info("send ");
- rad_packet_print(reply, log_ppp_info);
+ log_ppp_info2("send ");
+ rad_packet_print(reply, log_ppp_info2);
}
rad_packet_send(reply, fd, addr);
@@ -127,8 +127,8 @@ static int dm_coa_send_nak(int fd, struct rad_packet_t *req, struct sockaddr_in
static void disconnect_request(struct radius_pd_t *rpd)
{
if (conf_verbose) {
- log_ppp_info("recv ");
- rad_packet_print(rpd->dm_coa_req, log_ppp_info);
+ log_ppp_info2("recv ");
+ rad_packet_print(rpd->dm_coa_req, log_ppp_info2);
}
dm_coa_send_ack(serv.hnd.fd, rpd->dm_coa_req, &rpd->dm_coa_addr);
@@ -150,8 +150,8 @@ static void coa_request(struct radius_pd_t *rpd)
};
if (conf_verbose) {
- log_ppp_info("recv ");
- rad_packet_print(rpd->dm_coa_req, log_ppp_info);
+ log_ppp_info2("recv ");
+ rad_packet_print(rpd->dm_coa_req, log_ppp_info2);
}
triton_event_fire(EV_RADIUS_COA, &ev);
diff --git a/accel-pptpd/radius/req.c b/accel-pptpd/radius/req.c
index 27a661b..818ceb4 100644
--- a/accel-pptpd/radius/req.c
+++ b/accel-pptpd/radius/req.c
@@ -178,8 +178,8 @@ int rad_req_send(struct rad_req_t *req, int verbose)
goto out_err;
if (verbose) {
- log_ppp_info("send ");
- rad_packet_print(req->pack, log_ppp_info);
+ log_ppp_info1("send ");
+ rad_packet_print(req->pack, log_ppp_info1);
}
rad_packet_send(req->pack, req->hnd.fd, NULL);
@@ -247,8 +247,8 @@ int rad_req_wait(struct rad_req_t *req, int timeout)
triton_context_schedule(req->rpd->ppp->ctrl->ctx);
if (conf_verbose && req->reply) {
- log_ppp_info("recv ");
- rad_packet_print(req->reply, log_ppp_info);
+ log_ppp_info1("recv ");
+ rad_packet_print(req->reply, log_ppp_info1);
}
return 0;
}