Skip to content

Commit

Permalink
Hide debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
disfated committed Jul 4, 2011
1 parent efea7f1 commit 1cee77a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion reopen-tabs/plugin.py
Expand Up @@ -30,6 +30,7 @@

APP_NAME = "plugin"
LOC_PATH = os.path.join(os.path.expanduser("~/.gnome2/gedit/plugins/reopen-tabs/lang"))
DEBUG = False

gettext.find(APP_NAME, LOC_PATH)
gettext.install(APP_NAME, LOC_PATH, True)
Expand All @@ -41,7 +42,8 @@
RELOADER_STATE_CLOSING = "closing"

def log(msg):
print '\033[32m' + msg + '\033[0m'
if DEBUG:
print '\033[32m' + msg + '\033[0m'


class ReopenTabsPlugin(gedit.Plugin):
Expand Down

0 comments on commit 1cee77a

Please sign in to comment.