Display import errors in the GUI as well as the terminal, issue 789, thanks Marc

This commit is contained in:
Massimo Di Pierro
2012-05-11 08:26:53 -05:00
parent f35e026854
commit 750dbccb79
4 changed files with 24 additions and 4 deletions
+8 -2
View File
@@ -32,7 +32,7 @@
keys=root,rocket,markdown,web2py,rewrite,app,welcome
[handlers]
keys=consoleHandler
keys=consoleHandler,messageBoxHandler
#keys=consoleHandler,rotatingFileHandler
#keys=osxSysLogHandler
@@ -72,7 +72,7 @@ propagate=0
# loggers for legacy getLogger calls: Rocket and markdown
[logger_rocket]
level=WARNING
handlers=consoleHandler
handlers=consoleHandler,messageBoxHandler
qualname=Rocket
propagate=0
@@ -88,6 +88,12 @@ level=WARNING
formatter=simpleFormatter
args=(sys.stdout,)
[handler_messageBoxHandler]
class=gluon.messageboxhandler.MessageBoxHandler
level=ERROR
formatter=simpleFormatter
args=()
# Rotating file handler
# mkdir logs in the web2py base directory if not already present
# args: (filename[, mode[, maxBytes[, backupCount[, encoding[, delay]]]]])