IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31839


Ignore:
Timestamp:
Jul 8, 2011, 2:44:45 PM (15 years ago)
Author:
rhenders
Message:

changes to use new logging method

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/jython/datastore.py

    r31231 r31839  
    3535    def publish(self, name, path, file, fileType):
    3636
    37         self.logger.info("Attempting to publish '" + path +"/" + file + "' to datastore product: '" + self.product + "', type: '" + self.type + "'")
     37        self.logger.infoPair("Attempting to publish",  path + "/" + file)
    3838        tempFile = tempfile.NamedTemporaryFile(mode='w+b')
    3939        tempFile.write(file + "|||" + fileType)
     
    5454            ret = False
    5555        else:
    56             self.logger.info("Datastore publish successful")
     56            self.logger.infoPair("Datastore publish", "successful")
    5757            ret = True
    5858           
     
    8080        else:
    8181            ret = True
    82             self.logger.info("Datastore removal of " + name + " successful")
     82            self.logger.infoPair("Datastore removal successful", name)
    8383           
    8484        return ret
Note: See TracChangeset for help on using the changeset viewer.