rcextensions: added logging for basic function calls
This commit is contained in:
parent
f36492a220
commit
b1982a3bc3
2 changed files with 6 additions and 1 deletions
|
|
@ -15,8 +15,9 @@
|
|||
# This program is dual-licensed. If you wish to learn more about the
|
||||
# RhodeCode Enterprise Edition, including its added features, Support services,
|
||||
# and proprietary license terms, please see https://rhodecode.com/licenses/
|
||||
|
||||
import logging
|
||||
from .utils import DotDict, HookResponse, has_kwargs
|
||||
log = logging.getLogger('rhodecode.' + __name__)
|
||||
|
||||
|
||||
# Config shortcut to keep, all configuration in one place
|
||||
|
|
|
|||
|
|
@ -16,10 +16,13 @@
|
|||
# RhodeCode Enterprise Edition, including its added features, Support services,
|
||||
# and proprietary license terms, please see https://rhodecode.com/licenses/
|
||||
|
||||
import logging
|
||||
import os
|
||||
import functools
|
||||
import collections
|
||||
|
||||
log = logging.getLogger('rhodecode.' + __name__)
|
||||
|
||||
|
||||
class HookResponse(object):
|
||||
def __init__(self, status, output):
|
||||
|
|
@ -135,6 +138,7 @@ def has_kwargs(required_args):
|
|||
_verify_kwargs(func.func_name, required_args.keys(), kwargs)
|
||||
# in case there's `calls` defined on module we store the data
|
||||
maybe_log_call(func.func_name, args, kwargs)
|
||||
log.debug('Calling rcextensions function %s', func.func_name)
|
||||
return func(*args, **kwargs)
|
||||
return wrapper
|
||||
return wrap
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue