summaryrefslogtreecommitdiff
path: root/alot/ui.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/ui.py')
-rw-r--r--alot/ui.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/alot/ui.py b/alot/ui.py
index 7c64ae3b..9d321ceb 100644
--- a/alot/ui.py
+++ b/alot/ui.py
@@ -212,7 +212,7 @@ class UI(object):
string = 'tried to close unknown buffer: %s. \n\ni have:%s'
logging.error(string % (buf, self.buffers))
elif self.current_buffer == buf:
- logging.debug('UI: closing current buffer %s' % buf)
+ logging.info('closing current buffer %s' % buf)
index = buffers.index(buf)
buffers.remove(buf)
offset = settings.get('bufferclose_focus_offset')
@@ -221,7 +221,7 @@ class UI(object):
buf.cleanup()
else:
string = 'closing buffer %d:%s'
- logging.debug(string % (buffers.index(buf), buf))
+ logging.info(string % (buffers.index(buf), buf))
buffers.remove(buf)
buf.cleanup()
@@ -446,7 +446,7 @@ class UI(object):
if cmd:
# call pre- hook
if cmd.prehook:
- logging.debug('calling pre-hook')
+ logging.info('calling pre-hook')
try:
cmd.prehook(ui=self, dbm=self.dbman)
except:
@@ -456,7 +456,7 @@ class UI(object):
# define (callback) function that invokes post-hook
def call_posthook(retval_from_apply):
if cmd.posthook:
- logging.debug('calling post-hook')
+ logging.info('calling post-hook')
try:
cmd.posthook(ui=self, dbm=self.dbman)
except:
@@ -465,12 +465,12 @@ class UI(object):
# define error handler for Failures/Exceptions
# raised in cmd.apply()
def errorHandler(failure):
- logging.debug(failure.getTraceback())
- msg = "Error: %s,\ncheck the log for details"
+ logging.error(failure.getTraceback())
+ msg = "Error: %s,\n(check the log for details)"
self.notify(msg % failure.getErrorMessage(), priority='error')
# call cmd.apply
- logging.debug('apply command: %s' % cmd)
+ logging.info('apply command: %s' % cmd)
d = defer.maybeDeferred(cmd.apply, self)
d.addErrback(errorHandler)
d.addCallback(call_posthook)