예제 #1
0
 def wrapper(*args, **kwargs):
     the_self = args[0]
     try:
         log_command(f.__name__, kwargs)
         with tools.environment_append(the_self._client_cache.conan_config.env_vars):
             # Patch the globals in tools
             return f(*args, **kwargs)
     except Exception as exc:
         msg = exception_message_safe(exc)
         try:
             log_exception(exc, msg)
         except:
             pass
         raise
예제 #2
0
파일: conan_api.py 프로젝트: nesono/conan
 def wrapper(*args, **kwargs):
     the_self = args[0]
     try:
         log_command(f.__name__, kwargs)
         with tools.environment_append(the_self._client_cache.conan_config.env_vars):
             # Patch the globals in tools
             return f(*args, **kwargs)
     except Exception as exc:
         msg = exception_message_safe(exc)
         try:
             log_exception(exc, msg)
         except:
             pass
         raise