Changeset 4191

Show
Ignore:
Timestamp:
02/24/09 01:44:41 (4 years ago)
Author:
gpolo
Message:

Using log instead of print statements. This also fixes ticket #221.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branch/NetworkInventory/umitDB/InventoryChanges.py

    r4186 r4191  
    1919 
    2020from umitCore.I18N import _ 
     21from umitCore.UmitLogging import log 
    2122 
    2223from umitDB.Connection import ConnectDB 
     
    8485 
    8586            if not base_data: 
    86                 print ("Inventory id %d has no data for host " 
    87                     "address '%s' yet.") % (inv_id, addr) 
     87                log.debug("NetworkInventory: Inventory id %d has no data " 
     88                        "for host address %r yet.", inv_id, addr) 
    8889                continue 
    8990 
     
    359360 
    360361                if value != new_value: 
    361                     print value, new_value, 'differs but Im not doing nothing' 
     362                    log.debug("NetworkInventory: %s, %s differs " 
     363                            "but I'm not doing anything", value, new_value) 
    362364 
    363365            else: 
     
    369371 
    370372                if value != old_value: 
    371                     print value, old_value, 'differs but Im not doing nothing' 
     373                    log.debug("NetworkInventory: %s, %s differs " 
     374                            "but I'm not doing anything", value, new_value) 
    372375 
    373376            else: