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

Comparing COMP/CRAB/python/ApmonIf.py (file contents):
Revision 1.6 by corvo, Mon Mar 20 16:17:50 2006 UTC vs.
Revision 1.7 by corvo, Fri Mar 31 13:36:26 2006 UTC

# Line 6 | Line 6 | class ApmonIf:
6      """
7      def __init__(self, address='http://lxgate35.cern.ch:40808/ApMonConf'):
8          self._params = {}
9 +        self.fName = 'mlCommonInfo'
10          self._MLaddress = address
11          self.apm = None
12          self.apm = self.getApmonInstance()
# Line 21 | Line 22 | class ApmonIf:
22          
23      def getApmonInstance(self):
24          if self.apm is None :
25 <            apmonUrl = 'http://lxgate35.cern.ch:40808/ApMonConf'
26 <            print "Creating ApMon with " + apmonUrl
27 <            apmonInstance = apmon.ApMon(apmonUrl)
25 >            try:
26 >                apmonUrl = 'http://lxgate35.cern.ch:40808/ApMonConf'
27 >                print "Creating ApMon with " + apmonUrl
28 >                apmonInstance = apmon.ApMon(apmonUrl, apmon.Logger.WARNING)
29 >            except:
30 >                print "PIPPO"
31          return apmonInstance
32          
33      def free(self):

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines