Ejemplo n.º 1
0
	def wrapper(self, *args, **kw):
		# Set the library name in the logger
		logger.set_library('series')
		try:
			return func(self, *args, **kw)
		finally:
			logger.set_library('')
Ejemplo n.º 2
0
 def wrapper(self, *args, **kw):
     # Set the library name in the logger
     logger.set_library('series')
     try:
         return func(self, *args, **kw)
     finally:
         logger.set_library('')
Ejemplo n.º 3
0
 def wrapper(self, *args, **kw):
     # Set the library name in the logger
     logger.set_library(self.args.hostname.upper())
     try:
         return func(self, *args, **kw)
     finally:
         logger.set_library("")
Ejemplo n.º 4
0
 def wrapper(self, *args, **kw):
     # Set the library name in the logger
     logger.set_library(self.args.hostname.upper())
     try:
         return func(self, *args, **kw)
     finally:
         logger.set_library('')