Skip to content
This repository has been archived by the owner on Jan 20, 2023. It is now read-only.

Commit

Permalink
Fixed debug setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Thijs Waalen committed Mar 6, 2012
1 parent 328e01a commit f28e41e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion default.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
FILE_EXTENSIONS.extend(xbmcplugin.getSetting(handle, "custom_file_extensions").split(";"))

OUTPUT_FILE = xbmcplugin.getSetting(handle, "output_dir") + xbmcplugin.getSetting(handle, "output_file");
DEBUG = xbmcplugin.getSetting(handle, "debug");
DEBUG = False
if xbmcplugin.getSetting(handle, "debug") == "true":
DEBUG = True

def log(txt, severity=xbmc.LOGDEBUG):
if DEBUG and severity == xbmc.LOGINFO:
Expand Down

0 comments on commit f28e41e

Please sign in to comment.