Commit 922acc53 authored by Mac Newbold's avatar Mac Newbold

In failure messages, make errors more obvious by showing logged output before...

In failure messages, make errors more obvious by showing logged output before showing the ns file they submitted. Now things like 'Insufficient Nodes' will appear within the first 15 lines of the message, where they are easy to see. This also matches the format of the successful configuration messages.
parent b13d1476
......@@ -430,18 +430,17 @@ sub fatal()
print $MAIL $mesg;
if (open(IN, "$tempns")) {
print $MAIL "\n\n--------- $tempns ---------\n\n";
if (open(IN, "$logname")) {
print $MAIL "\n\n--------- $logname ---------\n\n";
while (<IN>) {
print $MAIL "$_";
}
close(IN);
unlink("$tempns");
}
if (open(IN, "$logname")) {
print $MAIL "\n\n--------- $logname ---------\n\n";
if (open(IN, "$eiddir/assign.log")) {
print $MAIL "\n\n--------- assign.log --------\n\n";
while (<IN>) {
print $MAIL "$_";
......@@ -449,14 +448,16 @@ sub fatal()
close(IN);
}
if (open(IN, "$eiddir/assign.log")) {
print $MAIL "\n\n--------- assign.log --------\n\n";
if (open(IN, "$tempns")) {
print $MAIL "\n\n--------- $tempns ---------\n\n";
while (<IN>) {
print $MAIL "$_";
}
close(IN);
unlink("$tempns");
}
close($MAIL);
unlink("$tempns");
......
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