[Top][All Lists]

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

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

From: Thomas Petazzoni
Subject: Re: [Maposmatic-dev] [PATCH] Improve PostGIS connection error reporting
Date: Thu, 7 Jan 2010 10:11:19 +0100

Le Thu, 7 Jan 2010 09:59:28 +0100,
David MENTRE <address@hidden> a écrit :

> 2010/1/7 Maxime Petazzoni <address@hidden>:
> > Add an error message when the Nominatim querier fails to contact the
> > local PostGIS database.
> [...]
> > +    except psycopg2.OperationalError, e:
> > +        print "Could not connect to the PostGIS database: ", e
> Wouldn't it better to put this in a log file?

It's even more important than that: from what I remember, putting some
"prints" in Django view functions works perfectly with the development
server (./ runserver) but fail miserably when used through
Apache. Therefore there shouldn't be any print in view functions.

Thomas Petazzoni               
Promouvoir et défendre le Logiciel Libre
Logiciels Libres à Toulouse    

Attachment: signature.asc
Description: PGP signature

reply via email to

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