use api.logger instead of debug.log
authorTony Mack <tmack@cs.princeton.edu>
Tue, 16 Feb 2010 23:29:12 +0000 (23:29 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Tue, 16 Feb 2010 23:29:12 +0000 (23:29 +0000)
sfa/managers/registry_manager_pl.py

index e4fcf83..91760f3 100644 (file)
@@ -113,8 +113,8 @@ def resolve(api, xrns, type=None, origin_hrn=None):
             records.append(dict(record))
         except PlanetLabRecordDoesNotExist:
             # silently drop the ones that are missing in PL
-            print >> log, "ignoring SFA record ", record['hrn'], \
-                              " because pl record does not exist"    
+            api.logger.info("ignoring SFA record %s because pl record \
+                             does not exist" % record['hrn'])    
             table.remove(record)
 
     if not records: