summaryrefslogtreecommitdiff
path: root/accel-pptpd/radius
diff options
context:
space:
mode:
authorKozlov Dmitry <dima@server>2010-10-05 17:51:23 +0400
committerKozlov Dmitry <dima@server>2010-10-05 17:51:23 +0400
commit5cf93f33f2350ed3b92f73ead1d2829a6883810a (patch)
treeab1d7fe7b27ca44ef3ee6618636d275c26f98c76 /accel-pptpd/radius
parent7f16563bd5a4ef21b970e8dcbab0e5cbe02bfe97 (diff)
downloadaccel-ppp-5cf93f33f2350ed3b92f73ead1d2829a6883810a.tar.gz
accel-ppp-5cf93f33f2350ed3b92f73ead1d2829a6883810a.zip
tidied logs
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.c10
3 files changed, 14 insertions, 16 deletions
diff --git a/accel-pptpd/radius/acct.c b/accel-pptpd/radius/acct.c
index 987b22b..a8346ed 100644
--- a/accel-pptpd/radius/acct.c
+++ b/accel-pptpd/radius/acct.c
@@ -71,8 +71,8 @@ static int rad_acct_read(struct triton_md_handler_t *h)
return 0;
if (conf_verbose) {
- log_ppp_debug("recv ");
- rad_packet_print(req->reply, log_ppp_debug);
+ log_ppp_info("recv ");
+ rad_packet_print(req->reply, log_ppp_info);
}
if (req->reply->code != CODE_ACCOUNTING_RESPONSE || req->reply->id != req->pack->id) {
diff --git a/accel-pptpd/radius/dm_coa.c b/accel-pptpd/radius/dm_coa.c
index d94596f..e034321 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_debug("send ");
- rad_packet_print(reply, log_ppp_debug);
+ log_ppp_info("send ");
+ rad_packet_print(reply, log_ppp_info);
}
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_debug("send ");
- rad_packet_print(reply, log_ppp_debug);
+ log_ppp_info("send ");
+ rad_packet_print(reply, log_ppp_info);
}
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_debug("recv ");
- rad_packet_print(rpd->dm_coa_req, log_ppp_debug);
+ log_ppp_info("recv ");
+ rad_packet_print(rpd->dm_coa_req, log_ppp_info);
}
dm_coa_send_ack(serv.hnd.fd, rpd->dm_coa_req, &rpd->dm_coa_addr);
@@ -147,8 +147,8 @@ static void coa_request(struct radius_pd_t *rpd)
};
if (conf_verbose) {
- log_ppp_debug("recv ");
- rad_packet_print(rpd->dm_coa_req, log_ppp_debug);
+ log_ppp_info("recv ");
+ rad_packet_print(rpd->dm_coa_req, log_ppp_info);
}
triton_event_fire(EV_RADIUS_COA, &ev);
diff --git a/accel-pptpd/radius/req.c b/accel-pptpd/radius/req.c
index 76b7ba3..bdd02b9 100644
--- a/accel-pptpd/radius/req.c
+++ b/accel-pptpd/radius/req.c
@@ -171,8 +171,8 @@ int rad_req_send(struct rad_req_t *req)
goto out_err;
if (conf_verbose) {
- log_ppp_debug("send ");
- rad_packet_print(req->pack, log_ppp_debug);
+ log_ppp_info("send ");
+ rad_packet_print(req->pack, log_ppp_info);
}
rad_packet_send(req->pack, req->hnd.fd, NULL);
@@ -215,8 +215,6 @@ int rad_req_wait(struct rad_req_t *req, int timeout)
req->timeout.expire = rad_req_timeout;
triton_context_register(&req->ctx, req->rpd->ppp);
- req->ctx.fname=__FILE__;
- req->ctx.line=__LINE__;
triton_md_register_handler(&req->ctx, &req->hnd);
triton_md_enable_handler(&req->hnd, MD_MODE_READ);
@@ -228,8 +226,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_debug("recv ");
- rad_packet_print(req->reply, log_ppp_debug);
+ log_ppp_info("recv ");
+ rad_packet_print(req->reply, log_ppp_info);
}
return 0;
}