Well, this is the config. I was in impression that I get no email, but cause TG neglects setting Date header, all error emails ended up in the bottom of my inbox (this should be fixed, too.)
TIA. Juraj [DEFAULT] debug = false email_to = <<snip>> smtp_server = <<snip>> error_email_from = [email protected] [server:main] use = egg:Paste#http host = 127.0.0.1 port = 8080 [sa_auth] cookie_secret = <<snip>> [app:main] use = egg:app full_stack = false beaker.session.type = ext:database beaker.session.url = postgresql+psycopg2://<<snip>> beaker.session.key = app beaker.session.secret = <<snip>> beaker.cache.type = ext:database beaker.cache.url = postgresql+psycopg2://<<snip>> sqlalchemy.url = postgresql+psycopg2://<<snip>> sqlalchemy.echo = false sqlalchemy.echo_pool = false sqlalchemy.pool_recycle = 3600 templating.genshi.method = xhtml templating.mako.reloadfromdisk = true templating.mako.compiled_templates_dir = %(here)s/data/templates set debug = false toscawidgets.framework.resource_variant=min [loggers] keys = root, sqlalchemy, auth [handlers] keys = console,file [formatters] keys = generic [logger_root] level = NOTSET handlers = console,file [logger_sqlalchemy] level = WARN handlers = qualname = sqlalchemy.engine [logger_auth] level = WARN handlers = qualname = auth [handler_console] class = StreamHandler args = () level = NOTSET formatter = generic [handler_file] class = handlers.RotatingFileHandler args = ('app_debug.log',) level = NOTSET formatter = generic [formatter_generic] format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s datefmt = %Y%m%d %H:%M:%S Dňa štvrtok, 27. septembra 2012 7:32:33 UTC+2 Michael Pedersen napísal(-a): > > In addition to what Moritz said, you absolutely should be getting > tracebacks in your log files. I know that I do. What's probably > killing you, though, is the settings in your .ini file. Understanding > all of the ins and outs of configuring the Python logging module is > not always easy. > > Could you post your .ini file for your applicaiton (sanitizing > passwords and other sensitive information, of course!), and I'll help > you figure out why you're not getting the info in your log files. > > Thanks! > > On Wed, Sep 26, 2012 at 6:28 PM, Moritz Schlarb > <[email protected]<javascript:>> > wrote: > > If you set correct email settings in your production.ini you should get > the > > full traceback per Mail! > > > > Am Mittwoch, 26. September 2012 20:21:28 UTC+2 schrieb Juraj Variny: > >> > >> Hi, > >> > >> when there is an exception in production mode, all I get is one-line > >> message on the console and nothing in the log file, regardless of log > level. > >> Is it possible to enable logging of exception backtraces ? > >> I only found a hint to install external library: > >> https://groups.google.com/d/topic/turbogears/VFVSMaaQbgY/discussionwhich > >> is > >> not extant anymore. > >> > >> Or should I wrap all my code in try blocks and log all exceptions > >> manually? > > > > -- > > You received this message because you are subscribed to the Google > Groups > > "TurboGears" group. > > To view this discussion on the web visit > > https://groups.google.com/d/msg/turbogears/-/S7KDDW0YN7oJ. > > > > To post to this group, send email to > > [email protected]<javascript:>. > > > To unsubscribe from this group, send email to > > [email protected] <javascript:>. > > For more options, visit this group at > > http://groups.google.com/group/turbogears?hl=en. > > > > -- > Michael J. Pedersen > My Online Resume: http://www.icelus.org/ -- Google+ > http://plus.ly/pedersen > Google Talk: [email protected] <javascript:> -- Twitter: pedersentg > -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To view this discussion on the web visit https://groups.google.com/d/msg/turbogears/-/arEvDfQRUO4J. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.

