Commit 841092dd authored by Andrea Valassi's avatar Andrea Valassi
Browse files

Better handling of verbosity changes (always go back to initial value)


git-svn-id: file:///git/lcgcool.svndb/cool/trunk@20086 4525493e-7705-40b1-a816-d608a930855b
parent 221b668c
......@@ -255,8 +255,8 @@ class ReferenceDbMgr:
print 'DEBUG: -----------------------------------------------------'
coralVrb = coral.MessageStream.msgVerbosity()
coral.MessageStream.setMsgVerbosity( 3 )
db = self.dbSvc.createDatabase( connectString )
coral.MessageStream.setMsgVerbosity( coralVrb )
try: db = self.dbSvc.createDatabase( connectString )
finally: coral.MessageStream.setMsgVerbosity( coralVrb )
print 'DEBUG: -----------------------------------------------------'
print 'DEBUG: Database created'
......@@ -945,9 +945,8 @@ class TestReferenceDb1RO( unittest.TestCase ):
print 'DEBUG: -----------------------------------------------------'
coralVrb = coral.MessageStream.msgVerbosity()
coral.MessageStream.setMsgVerbosity( 3 )
TestReferenceDb1RO.db = TestReferenceDb1RO.mgr.dbSvc.openDatabase\
( connectString, readOnly )
coral.MessageStream.setMsgVerbosity( coralVrb )
try: TestReferenceDb1RO.db = TestReferenceDb1RO.mgr.dbSvc.openDatabase( connectString, readOnly )
finally: coral.MessageStream.setMsgVerbosity( coralVrb )
print 'DEBUG: -----------------------------------------------------'
print 'DEBUG: Database opened'
#print 'DEBUG: -> db ID:', TestReferenceDb1RO.db.databaseId()
......@@ -2563,9 +2562,8 @@ class TestReferenceDb1RW( unittest.TestCase ):
print 'DEBUG: -----------------------------------------------------'
coralVrb = coral.MessageStream.msgVerbosity()
coral.MessageStream.setMsgVerbosity( 3 )
TestReferenceDb1RW.db = TestReferenceDb1RW.mgr.dbSvc.openDatabase\
( connectString, readOnly )
coral.MessageStream.setMsgVerbosity( coralVrb )
try: TestReferenceDb1RW.db = TestReferenceDb1RW.mgr.dbSvc.openDatabase( connectString, readOnly )
finally: coral.MessageStream.setMsgVerbosity( coralVrb )
print 'DEBUG: -----------------------------------------------------'
print 'DEBUG: Database opened'
#print 'DEBUG: -> db ID:', TestReferenceDb1RW.db.databaseId()
......@@ -3292,9 +3290,8 @@ class TestReferenceDb2RO( unittest.TestCase ):
print 'DEBUG: -----------------------------------------------------'
coralVrb = coral.MessageStream.msgVerbosity()
coral.MessageStream.setMsgVerbosity( 3 )
TestReferenceDb2RO.db = TestReferenceDb2RO.mgr.dbSvc.openDatabase\
( connectString, readOnly )
coral.MessageStream.setMsgVerbosity( coralVrb )
try: TestReferenceDb2RO.db = TestReferenceDb2RO.mgr.dbSvc.openDatabase( connectString, readOnly )
finally: coral.MessageStream.setMsgVerbosity( coralVrb )
print 'DEBUG: -----------------------------------------------------'
print 'DEBUG: Database opened'
#print 'DEBUG: -> db ID:', TestReferenceDb2RO.db.databaseId()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment