Add higher debug level to gatherstats.
Signed-off-by: Thomas Hochstein <thh@thh.name>
This commit is contained in:
		
							parent
							
								
									c7206a2eaf
								
							
						
					
					
						commit
						f6b7a1d000
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -41,7 +41,7 @@ my ($OptCheckgroupsFile,$OptClientsDB,$OptDebug,$OptGroupsDB,$OptTLH,
 | 
			
		|||
    $OptConfFile);
 | 
			
		||||
GetOptions ('c|checkgroups=s' => \$OptCheckgroupsFile,
 | 
			
		||||
            'clientsdb=s'     => \$OptClientsDB,
 | 
			
		||||
            'd|debug!'        => \$OptDebug,
 | 
			
		||||
            'd|debug+'        => \$OptDebug,
 | 
			
		||||
            'groupsdb=s'      => \$OptGroupsDB,
 | 
			
		||||
            'hierarchy=s'     => \$OptTLH,
 | 
			
		||||
            'hostsdb=s'       => \$OptHostsDB,
 | 
			
		||||
| 
						 | 
				
			
			@ -341,7 +341,7 @@ sub HostStats {
 | 
			
		|||
      &Bleat(2,sprintf("%s FAILED", $Header{'message-id'})) if !$Host;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    printf("%s: %s\n", $Header{'message-id'}, $Host) if $MID;
 | 
			
		||||
    printf("%s: %s\n", $Header{'message-id'}, $Host) if ($MID or $Debug && $Debug >1);
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  # delete old data for that month
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue