#NEWLINE# def snmp_logger( self , func ) : #NEWLINE# #INDENT# '\n        Decorator to log, with DEBUG level, SNMP commands\n        ' #NEWLINE# @ wraps ( func ) #NEWLINE# def wrapper( * args , **kwargs ) : #NEWLINE# #INDENT# self . log . debug ( 'Running SNMP command {0} on OIDS {1}' . format ( func . __name__ , args [ 2 : ] ) ) #NEWLINE# result = func ( * args , ** kwargs ) #NEWLINE# self . log . debug ( 'Returned vars: {0}' . format ( result [ ( - 1 ) ] ) ) #NEWLINE# return result #NEWLINE# #UNINDENT# return wrapper