From 25d7bf1835fbbc018a16056811e8541376d8173b Mon Sep 17 00:00:00 2001 From: Patrick Klein Date: Wed, 25 Apr 2018 10:40:17 -0700 Subject: [PATCH] remove log spam for release --- resources/lib/utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/lib/utils.py b/resources/lib/utils.py index fd36456..5ca3619 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -4,6 +4,7 @@ ''' This module contains various helper functions used thoughout the addon ''' +#TODO: create a global IN_DEVELOPMENT variable to enable/disable various features import xbmc import xbmcaddon @@ -23,7 +24,7 @@ def wrapper(*args, **kwargs): return func(*new_args, **new_kwargs) return wrapper -def log_msg(msg, loglevel=xbmc.LOGNOTICE): +def log_msg(msg, loglevel=xbmc.LOGDEBUG): ''' log message with addon name and version to kodi log ''' if isinstance(msg, unicode): msg = msg.encode('utf-8') @@ -31,6 +32,8 @@ def log_msg(msg, loglevel=xbmc.LOGNOTICE): def log_decorator(func): ''' decorator for logging function call and return values ''' + #TODO: option to have "pre-" and "post-" logging + #TODO: fix iterating output when string (Synced.localize_type) def wrapper(*args, **kwargs): ''' function wrapper ''' # call the function and get the return value