Re: Silencing NOTICEs in Perl Pg
| От | David Wheeler |
|---|---|
| Тема | Re: Silencing NOTICEs in Perl Pg |
| Дата | |
| Msg-id | 1819BC3A-BC34-11D6-B671-0003931A964A@wheeler.net обсуждение исходный текст |
| Ответ на | Re: Silencing NOTICEs in Perl Pg (Andrew Perrin <clists@perrin.socsci.unc.edu>) |
| Список | pgsql-admin |
On Friday, August 30, 2002, at 09:01 AM, Andrew Perrin wrote: > I don't know the Pg module at all, but if it uses warn() to dump those > notices to STDERR, you can use a sig handler to catch them: I actually tried that, too. It didn't work. DDB::Pg just uses libpq, and that C library is what generates the NOTICES. I think it uses C's printf internally, but there was no way to capture that in Perl short of filtering STDERR's output through a forked perl or grep. Regards, David -- David Wheeler AIM: dwTheory david@wheeler.net ICQ: 15726394 http://david.wheeler.net/ Yahoo!: dew7e Jabber: Theory@jabber.org
В списке pgsql-admin по дате отправления: