diff --git a/resources/lib/kodiwrapper.py b/resources/lib/kodiwrapper.py index b2d34bc2..599e81ba 100644 --- a/resources/lib/kodiwrapper.py +++ b/resources/lib/kodiwrapper.py @@ -657,6 +657,8 @@ def log_access(self, url, query_string=None, log_level='Verbose'): def log(self, message, log_level='Info', **kwargs): ''' Log info messages to Kodi ''' cur_log_level = LOG_LEVELS.get(log_level, 0) + if cur_log_level > self._max_log_level: + return if not self._debug_logging and 1 < cur_log_level <= self._max_log_level: # If Debug Logging is not enabled, Kodi filters everything up to NOTICE out log_level = 'Info'