Andreas, the errors are already caught by tweens. You would do yourself a favor to look at how the pyramid_exclog package works to perform logging of errors. The important bit is that it must sit under pyramid's exception view tween which catches exceptions and invokes exception views. Once you have logged the exception you can just forward it on if you wish, or squash it and return your own response.
On Wed, Jan 23, 2013 at 2:44 AM, Andreas Jung <[email protected]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I want to log error from all Pyramid app servers inside a central > logging database. Is there any chance for catching/logging the errors > through a tween? At least I could not find an option to propagate errors > to a tween or is it better writing and configuring a custom logging > handler that fetches the errors and pushes them into our logging database? > > Andreas > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.11 (Darwin) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iQGUBAEBAgAGBQJQ/6L7AAoJEADcfz7u4AZjo08Lv1BdnJpb41FaZfwPmgZb3iKH > 3EVjGoMnCx6Y2GUzudewM71hBDB86iqsWOdizlOxjtwkkTxYpBe5bFRBQtppKtw1 > q4U5AHIxYHmmxz9ZTYH9JG5mC20nS+qnIGoeXm92D2tBFKjThe65eRjIdjM2tXHL > LLmwtXl7rOgCvyA5rGF8qPKuMtzEIFFKpC0Gs+7rRSwDx7QBLqts3fI5s3/4URSa > l7SrNR7DbuZAb3anzkElYfR7eJko1R0AZ92WOB2y3s09z9WoiqUnWJM8wHY7ZYrm > uhWIHRAnRrghoUiOTClwop7XxH3fBmNN36KS0qTwG/TDc6WS+OXdhhpc83mr9Bfu > 8xDld8sbn+v+zVdqS21Sa9U9rwKvRi0KJJzYgDXYyl5uQHlqY64E9BzKxwNzMfVg > UaUWvTUmEJDEfw26yEdmN+f+wELvdfANv9OVlDpVBaRq8YHMG6I2VdVc2SfUp6bN > zXzpGKUDLeoTWreiOIebqtCeBMneIeM= > =fo8v > -----END PGP SIGNATURE----- > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > Visit this group at http://groups.google.com/group/pylons-discuss?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pylons-discuss?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
