maposmatic-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Maposmatic-dev] [PATCH] Improve PostGIS connection error reporting


From: Maxime Petazzoni
Subject: Re: [Maposmatic-dev] [PATCH] Improve PostGIS connection error reporting
Date: Thu, 7 Jan 2010 13:22:06 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

* Maxime Petazzoni <address@hidden> [2010-01-07 13:19:25]:

> -    except psycopg2.OperationalError:
> +    except psycopg2.OperationalError, e:
> +        www.settings.LOG.warning("Could not connect to the PostGIS database: 
> %s" %
> +                                 str(e)[:-1])

Does this look better? I checked, it's correctly outputted into the
maposmatic.log file when the error happens.

- Maxime

-- 
Maxime Petazzoni <http://www.bulix.org>
 ``One by one, the penguins took away my sanity.''
Linux kernel and software developer at MontaVista Software

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]