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('')
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("")
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('')