Browse files

Hide debug messages

  • Loading branch information...
1 parent efea7f1 commit 1cee77a93e2554e5e8e263d6fd1b298f7c84cf45 @disfated committed Jul 4, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 reopen-tabs/plugin.py
View
4 reopen-tabs/plugin.py
@@ -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)
@@ -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):

0 comments on commit 1cee77a

Please sign in to comment.