error tracking source code patch: reg_system.cgi (v 2.4X)
i've noticed most opensrs resellers don't know what and when their customers are getting opensrs errors until they match CC payment with
domains registration or recieve a complaint directly from their customers, offen resellers don't seem to know what errors are occuring
he're a patch to send an email to the admin when an error occurs, my hope is this might help get server errors to be reported faster and ultimately opensrs to fix errors faster
create a file similiar to message.txt called messagefail.txt which will be sent to the admin email when opensrs errors occur
here is the patch:
if ($register_results->{attributes}->{error}) {
$register_results->{attributes}->{error} =~ s/\n/<br>\n/g;
$status .= " $register_results->{attributes}->{error}";
if ( $register_results->{response_code} == 486 )
{
$status .= ' Please retry in a minute or two.<BR>';
}
}
$status .= "<br>\n";
#!!!START ON FAIL SEND MAIL TO ADMIN
send_email("$path_templates/messagefail.txt",
{
%in,
domain => $domain,
mailfrom => $in{owner_email}||$ADMIN_EMAIL,
mailto => $ADMIN_EMAIL,
id => $id,
period_text => $REG_PERIODS{$in{period}},
reg_type => $reg_type,
});
#!!!END
}
}
here is the original source:
if ($register_results->{attributes}->{error}) {
$register_results->{attributes}->{error} =~ s/\n/<br>\n/g;
$status .= " $register_results->{attributes}->{error}";
if ( $register_results->{response_code} == 486 )
{
$status .= ' Please retry in a minute or two.<BR>';
}
}
$status .= "<br>\n";
}
}
This archive was generated by hypermail 2.1.3 : Tue Oct 19 2004 - 23:36:52 EDT