diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2014-04-07 19:15:05 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2014-04-07 19:15:05 +0300 |
commit | e9a3813dc13fd1f8e73d77638da6b504ad7795be (patch) | |
tree | 444bf162611a43a6f69d6384e356058b4fb49f2c | |
parent | 653bb8cf0ff24d35082b716849642d59ae789562 (diff) | |
download | dnstools-e9a3813dc13fd1f8e73d77638da6b504ad7795be.tar.gz dnstools-e9a3813dc13fd1f8e73d77638da6b504ad7795be.tar.bz2 |
vhostcname: reorganize debug levels
-rwxr-xr-x | vhostcname/vhostcname | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vhostcname/vhostcname b/vhostcname/vhostcname index 56b972c..3db1c76 100755 --- a/vhostcname/vhostcname +++ b/vhostcname/vhostcname @@ -81,7 +81,7 @@ sub get_cnames($) { foreach my $file (glob "$dir/$confpat") { next unless (-f $file); - print STDERR "$script: reading cnames from $file\n" if ($debug > 3); + print STDERR "$script: reading cnames from $file\n" if ($debug > 2); open(my $fd, "<", $file) or do { err("can't open file $file: $!"); @@ -191,7 +191,7 @@ sub update_cnames_from_hash { my %hash = @_; print STDERR "$script: " . keys(%hash) . " names to update\n" - if ($debug > 1); + if ($debug > 2); my %oldhash = read_cname_list($cnamelist); my @namelist = sort(keys(%hash)); if (join(",", @namelist) eq join(".", sort(keys(%oldhash)))) { |