Skip to content

Commit

Permalink
Fetching the DEBUG flag from settings
Browse files Browse the repository at this point in the history
  • Loading branch information
bordaigorl committed Sep 16, 2014
1 parent c24aa77 commit 20267b5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sublime_evernote.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,12 @@
SUBLIME_EVERNOTE_COMMENT_BEG = "<!-- Sublime:"
SUBLIME_EVERNOTE_COMMENT_END = "-->"

DEBUG = True
DEBUG = False

if DEBUG:
def LOG(*args):

def LOG(*args):
if DEBUG:
print("Evernote:", *args)
else:
def LOG(*args):
pass


def extractTags(tags):
Expand Down Expand Up @@ -231,7 +229,9 @@ def get_user_id(self, token=None):
return int(id, 16)

def load_settings(self):
global DEBUG
self.settings = sublime.load_settings(EVERNOTE_SETTINGS)
DEBUG = bool(self.settings.get('debug'))
pygm_style = self.settings.get('code_highlighting_style')
if pygm_style:
EvernoteDo.MD_EXTRAS['fenced-code-blocks']['style'] = pygm_style
Expand Down

0 comments on commit 20267b5

Please sign in to comment.