2 # -*- coding: utf-8 -*-
4 # Created on: 13.01.2017
6 # Takes everything, does nothing, classic no operation function
11 def log(f, name=None):
14 def wrapped(*args, **kwargs):
16 class_name = that.__class__.__name__
18 for key, value in kwargs.iteritems():
19 if key != 'account' and key != 'credentials':
20 arguments += ":%s = %s:" % (key, value)
22 that.log('"' + class_name + '::' + name + '" called with arguments ' + arguments)
24 that.log('"' + class_name + '::' + name + '" called')
25 result = f(*args, **kwargs)
26 that.log('"' + class_name + '::' + name + '" returned: ' + str(result))
28 wrapped.__doc__ = f.__doc__