Commit 7d13c6c5 authored by Nigel Kukard's avatar Nigel Kukard

Cleaned up log lines

parent 94a0de0a
...@@ -1017,7 +1017,7 @@ sub process_request { ...@@ -1017,7 +1017,7 @@ sub process_request {
$coaSock->recv($coaRes_packet, 65536); $coaSock->recv($coaRes_packet, 65536);
if (!$coaRes_packet) { if (!$coaRes_packet) {
$self->log(LOG_INFO,"[SMRADIUS] POST-ACCT: No data received in response to our request to '$coaServerIP:$coaServerPort': $!"); $self->log(LOG_INFO,"[SMRADIUS] POST-ACCT: No data received in response to our request to '$coaServerIP:$coaServerPort': $!");
$logReason = "No Response"; $request->addLogLine(". No response to CoA/POD");
next; next;
} }
...@@ -1026,17 +1026,17 @@ sub process_request { ...@@ -1026,17 +1026,17 @@ sub process_request {
# Check status # Check status
if ($coaRes->code eq "CoA-ACK") { if ($coaRes->code eq "CoA-ACK") {
$logReason = "CoA Success"; $request->addLogLine(". CoA Success");
last; last;
} elsif ($coaRes->code eq "CoA-NACK") { } elsif ($coaRes->code eq "CoA-NACK") {
$logReason = "CoA Fail"; $request->addLogLine(". CoA Fail");
} elsif ($coaRes->code eq "Disconnect-ACK") { } elsif ($coaRes->code eq "Disconnect-ACK") {
$logReason = "POD Success"; $request->addLogLine(". POD Success");
last; last;
} elsif ($coaRes->code eq "Disconnect-NACK") { } elsif ($coaRes->code eq "Disconnect-NACK") {
$logReason = "POD Fail"; $request->addLogLine(". POD Fail");
} else { } else {
$logReason = "CoA/POD Fail"; $request->addLogLine(". Invalid CoA/POD response");
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment