Changeset 17 for trunk/cgi-bin


Ignore:
Timestamp:
10/25/04 17:33:36 (20 years ago)
Author:
Kris Deugau
Message:

Fixed incorrect syslog error statements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/main.cgi

    r13 r17  
    138138    carp "Transaction aborted because $@";
    139139    eval { $ip_dbh->rollback; };
    140     syslog "error", "Could not add master block '$webvar{cidr}' to database: '$@'";
     140    syslog "err", "Could not add master block '$webvar{cidr}' to database: '$@'";
    141141    printAndExit("Could not add master block $webvar{cidr} to database");
    142142  }
     
    947947    if ($sth->err) {
    948948      printAndExit("Allocation of $cidr to $webvar{custid} failed: '".$sth->errstr."'");
    949       syslog "error", "Allocation of $cidr to $webvar{custid} by $authuser failed: ".
     949      syslog "err", "Allocation of $cidr to $webvar{custid} by $authuser failed: ".
    950950        "'".$sth->errstr."'";
    951951    }
     
    998998        carp "Transaction aborted because $@";
    999999        eval { $ip_dbh->rollback; };
    1000         syslog "error", "Allocation of '$webvar{fullcidr}' to '$webvar{custid}' as ".
     1000        syslog "err", "Allocation of '$webvar{fullcidr}' to '$webvar{custid}' as ".
    10011001                "'$webvar{alloctype}' by $authuser failed: '$@'";
    10021002        printAndExit("Allocation of $cidr as $full_alloc_types{$webvar{alloctype}} failed.\n");
     
    10641064        carp "Transaction aborted because $@";
    10651065        eval { $ip_dbh->rollback; };
    1066         syslog "error", "Allocation of '$webvar{fullcidr}' to '$webvar{custid}' as ".
     1066        syslog "err", "Allocation of '$webvar{fullcidr}' to '$webvar{custid}' as ".
    10671067                "'$webvar{alloctype}' by $authuser failed: '$@'";
    10681068        printAndExit("Allocation of $cidr as $full_alloc_types{$webvar{alloctype}} failed.\n");
     
    10901090      carp "Transaction aborted because $@";
    10911091      eval { $ip_dbh->rollback; };
    1092       syslog "error", "Initialization of pool '$webvar{fullcidr}' by $authuser failed: '$@'";
     1092      syslog "err", "Initialization of pool '$webvar{fullcidr}' by $authuser failed: '$@'";
    10931093      printAndExit("$full_alloc_types{$webvar{alloctype}} $webvar{fullcidr} not completely initialized.");
    10941094    }
     
    12321232    carp "Transaction aborted because $@";
    12331233    eval { $ip_dbh->rollback; };
    1234     syslog "error", "$authuser could not update block/IP '$webvar{block}': '$@'";
     1234    syslog "err", "$authuser could not update block/IP '$webvar{block}': '$@'";
    12351235    printAndExit("Could not update block/IP $webvar{block}");
    12361236  }
     
    13711371      carp "Transaction aborted because $@";
    13721372      eval { $ip_dbh->rollback; };
    1373       syslog "error", "$authuser could not deallocate static IP '$webvar{block}': '$@'";
     1373      syslog "err", "$authuser could not deallocate static IP '$webvar{block}': '$@'";
    13741374      printAndExit("Could not deallocate static IP $webvar{block}");
    13751375    }
     
    13891389      carp "Transaction aborted because $@";
    13901390      eval { $ip_dbh->rollback; };
    1391       syslog "error", "$authuser could not remove master block '$webvar{block}': '$@'";
     1391      syslog "err", "$authuser could not remove master block '$webvar{block}': '$@'";
    13921392      printAndExit("Could not remove master block $webvar{block}");
    13931393    }
     
    14851485      carp "Transaction aborted because $@";
    14861486      eval { $ip_dbh->rollback; };
    1487       syslog "error", "$authuser could not deallocate netblock '$webvar{block}': '$@'";
     1487      syslog "err", "$authuser could not deallocate netblock '$webvar{block}': '$@'";
    14881488      printAndExit("Could not deallocate netblock $webvar{block}");
    14891489    }
Note: See TracChangeset for help on using the changeset viewer.