Răsfoiți Sursa

removed warning for new ip by dhcp event

root 1 an în urmă
părinte
comite
7284b74e9f
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      scripts/dhcp-log.pl

+ 1 - 1
scripts/dhcp-log.pl

@@ -184,7 +184,7 @@ if (!$pid) {
 
 
             #if record not found - create it
             #if record not found - create it
             if (!$auth_record and $type=~/(add|old)/i) {
             if (!$auth_record and $type=~/(add|old)/i) {
-                    db_log_warning($hdb,"Record for dhcp request type: ".$type." ip=".$dhcp_record->{ip}." and mac=".$mac." does not exists!");
+#                    db_log_warning($hdb,"Record for dhcp request type: ".$type." ip=".$dhcp_record->{ip}." and mac=".$mac." does not exists!");
                     my $res_id = resurrection_auth($hdb,$dhcp_record);
                     my $res_id = resurrection_auth($hdb,$dhcp_record);
                     if (!$res_id) {
                     if (!$res_id) {
                         db_log_error($hdb,"Error creating an ip address record for ip=".$dhcp_record->{ip}." and mac=".$mac."!");
                         db_log_error($hdb,"Error creating an ip address record for ip=".$dhcp_record->{ip}." and mac=".$mac."!");