| От | Jan Urbański |
|---|---|
| Тема | Re: pl/python tracebacks |
| Дата | |
| Msg-id | 4D6EB671.9000600@wulczer.org обсуждение исходный текст |
| Ответ на | Re: pl/python tracebacks (Peter Eisentraut <peter_e@gmx.net>) |
| Ответы |
Re: pl/python tracebacks
Re: pl/python tracebacks |
| Список | pgsql-hackers |
On 01/03/11 22:12, Peter Eisentraut wrote: > On tis, 2011-03-01 at 21:10 +0100, Jan Urbański wrote: >> So you end up with a context message saying "PL/Python function %s" >> and a detail message with the saved detail (if it's present) *and* the >> traceback. The problem is that the name of the function is already in >> the traceback, so there's no need for the context *if* there's a >> traceback present. > > I wouldn't actually worry about that bit of redundancy so much. Getting > proper context for nested calls is much more important. Here's another version that puts tracebacks in the context field. I did some tests with the attached test script, calling various of the functions defined there and the error messages more or less made sense (or at least were not worse than before). Cheers, Jan
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера