Changeset 30 for trunk/daemon/togad.py


Ignore:
Timestamp:
04/01/05 11:26:59 (18 years ago)
Author:
bastiaans
Message:

daemon/togad.py:

Changed debugging levels/messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/togad.py

    r29 r30  
    1414# Specify debugging level here;
    1515#
    16 # >=11 = metric XML
    17 # >=10 = host,cluster,grid,ganglia XML
    18 # >=9  = RRD activity,gmetad config parsing
    19 # >=7  = daemon threading
    20 #
    21 DEBUG_LEVEL = 9
     16# <=11 = metric XML
     17# <=10 = host,cluster,grid,ganglia XML
     18# <=9  = RRD activity,gmetad config parsing
     19# <=8  = host processing
     20# <=7  = daemon threading
     21#
     22DEBUG_LEVEL = 8
    2223
    2324# Where is the gmetad.conf located
     
    116117                        correct_serial = self.rrd.checkNewRrdPeriod( self.hostName, mytime )
    117118
     119                        debug_msg( 8, 'time %s: Storing metrics for %s' %(mytime, self.hostName) )
    118120                        self.storeMetrics( self.hostName, correct_serial )
    119121
     
    365367
    366368                last_timeserial = int( self.getLastRrdTimeSerial( host ) )
    367                 debug_msg( 8, 'last timeserial of %s is %s' %( host, last_timeserial ) )
     369                debug_msg( 9, 'last timeserial of %s is %s' %( host, last_timeserial ) )
    368370
    369371                if not last_timeserial:
     
    383385                "Check if an .rrd allready exists for this metric, create if not"
    384386
    385                 debug_msg( 8, 'rrdcreate: using timeserial %s for %s/%s' %( timeserial, host, metric['name'] ) )
     387                debug_msg( 9, 'rrdcreate: using timeserial %s for %s/%s' %( timeserial, host, metric['name'] ) )
    386388
    387389                rrd_dir, rrd_file = self.makeRrdPath( host, metric, timeserial )
     
    411413        def update( self, host, metric, timeserial ):
    412414
    413                 debug_msg( 8, 'rrdupdate: using timeserial %s for %s/%s' %( timeserial, host, metric['name'] ) )
     415                debug_msg( 9, 'rrdupdate: using timeserial %s for %s/%s' %( timeserial, host, metric['name'] ) )
    414416
    415417                rrd_dir, rrd_file = self.makeRrdPath( host, metric, timeserial )
Note: See TracChangeset for help on using the changeset viewer.