MCPcopy Create free account
hub / github.com/Yasoz/DiffTraj / func_wrapper

Method func_wrapper

utils/logger.py:110–116  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

108 def log_function(self):
109 def wrapper(func):
110 def func_wrapper(*args, **kwargs):
111 self.__logger.info(
112 f"calling <{func.__name__}>\n\t args: {args}\n\tkwargs: {kwargs}"
113 )
114 out = func(*args, **kwargs)
115 self.__logger.info(f"exiting <{func.__name__}>")
116 return out
117
118 return func_wrapper
119

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected