Changeset 163


Ignore:
Timestamp:
02/10/05 10:36:22 (19 years ago)
Author:
Kris Deugau
Message:

/branches/stable

Added some debug logging to catch times of billing DB failures (if any)
Caught another missed "poolips.ptype"
Fixed a buglet where "$@" gets reset before it's logged

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/cgi-bin/main.cgi

    r162 r163  
    11501150  };
    11511151  if ($@) {
    1152     carp "Transaction aborted because $@";
     1152    my $msg = $@;
     1153    carp "Transaction aborted because $msg";
    11531154    eval { $ip_dbh->rollback; };
    1154     syslog "err", "$authuser could not update block/IP '$webvar{block}': '$@'";
    1155     printError("Could not update block/IP $webvar{block}: $@");
     1155    syslog "err", "$authuser could not update block/IP '$webvar{block}': '$msg'";
     1156    printError("Could not update block/IP $webvar{block}: $msg");
    11561157    return;
    11571158  }
     
    12251226
    12261227    # Unassigning a static IP
    1227     my $sth = $ip_dbh->prepare("select ip,custid,city,ptype,notes,circuitid from poolips".
     1228    my $sth = $ip_dbh->prepare("select ip,custid,city,type,notes,circuitid from poolips".
    12281229        " where ip='$webvar{block}'");
    12291230    $sth->execute();
Note: See TracChangeset for help on using the changeset viewer.