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: 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 (./manage.py runserver) but fail miserably when used through
Apache. Therefore there shouldn't be any print in view functions.

Thomas
-- 
Thomas Petazzoni                         http://thomas.enix.org
Promouvoir et défendre le Logiciel Libre http://www.april.org
Logiciels Libres à Toulouse              http://www.toulibre.org

Attachment: signature.asc
Description: PGP signature


reply via email to

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