ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/InspectDBS.py
(Generate patch)

Comparing COMP/CRAB/python/InspectDBS.py (file contents):
Revision 1.1 by fanzago, Tue May 26 15:36:14 2009 UTC vs.
Revision 1.2 by fanzago, Thu May 28 15:36:38 2009 UTC

# Line 57 | Line 57 | class InspectDBS(Actor):
57              procds=self.dataset_to_check.split('/')[2]
58              tier=self.dataset_to_check.split('/')[3]
59              datasets=dbsreader.matchProcessedDatasets(primds,tier,procds)
60 <            if common.logger.debugLevel():
60 >            if common.debugLevel:
61                  print "PrimaryDataset = ", primds
62                  print "ProcessedDataset = ", procds
63                  print "DataTier = ", tier
# Line 82 | Line 82 | class InspectDBS(Actor):
82                          print "      Number of files: %s"%block['NumberOfFiles']
83                          print "      Number of Bytes: %s"%block['BlockSize']
84                          print "      Number of Events: %s"%block['NumberOfEvents']
85 <                        if common.logger.debugLevel():
85 >                        if common.debugLevel:
86                              print "--------- info about files --------"
87                              print " Size \t Events \t LFN \t FileStatus "
88                              files=dbsreader.listFilesInBlock(block['Name'])
# Line 90 | Line 90 | class InspectDBS(Actor):
90                                  print "%s %s %s %s"%(file['FileSize'],file['NumberOfEvents'],file['LogicalFileName'],file['Status'])
91                          nevttot = nevttot + block['NumberOfEvents']
92                      print "\n total events: %s in dataset: %s\n"%(nevttot,datasetpath)
93 <        if not common.logger.debugLevel():
93 >        if not common.debugLevel:
94              common.logger.info('You can obtain more info about files of the dataset using: crab -checkPublication -USER.dataset_to_check='+self.dataset_to_check+' -USER.dbs_url_for_publication='+self.DBSURL+' -debug')
95          
96      def run(self):

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines