Changeset 257


Ignore:
Timestamp:
03/02/12 16:38:41 (13 years ago)
Author:
Kris Deugau
Message:

/trunk

Fix update to calls to _log from r256. See #26

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r256 r257  
    10931093
    10941094    _log($dbh, (domain => $dom_id, user_id => $userinfo{id}, group_id => $group, username => $userinfo{name},
    1095                 name => $userinfo{fullname}),
    1096         "Added ".($state ? 'active' : 'inactive')." domain $domain");
     1095                name => $userinfo{fullname}, entry => "Added ".($state ? 'active' : 'inactive')." domain $domain"));
    10971096
    10981097    # ... and now we construct the standard records from the default set.  NB:  group should be variable.
     
    11091108        my @tmp2 = split /:/, $val;
    11101109        _log($dbh, (domain => $dom_id, user_id => $userinfo{id}, group_id => $group,
    1111                         username => $userinfo{name}, name => $userinfo{fullname}),
     1110                username => $userinfo{name}, name => $userinfo{fullname}, entry =>
    11121111                "[new $domain] Added SOA record [contact $tmp1[0]] [master $tmp1[1]] ".
    1113                 "[refresh $tmp2[0]] [retry $tmp2[1]] [expire $tmp2[2]] [minttl $tmp2[3]], TTL $ttl");
     1112                "[refresh $tmp2[0]] [retry $tmp2[1]] [expire $tmp2[2]] [minttl $tmp2[3]], TTL $ttl"));
    11141113      } else {
    11151114        my $logentry = "[new $domain] Added record '$host $typemap{$type}";
     
    11171116        $logentry .= " [priority $dist] [weight $weight] [port $port]" if $typemap{$type} eq 'SRV';
    11181117        _log($dbh, (domain => $dom_id, user_id => $userinfo{id}, group_id => $group,
    1119                         username => $userinfo{name}, name => $userinfo{fullname}),
    1120                 $logentry." $val', TTL $ttl");
     1118                username => $userinfo{name}, name => $userinfo{fullname}, entry =>
     1119                $logentry." $val', TTL $ttl"));
    11211120      }
    11221121    }
Note: See TracChangeset for help on using the changeset viewer.