[Zoo-discuss] try except in error apache2

truongxuan quang truongxuanquang at yahoo.com
Tue Feb 11 08:10:31 PST 2014


Dear list

I have some problem with writing an error in error.log. Currently in ZOO-ServerProvider (*.py) I used a lot of:  try: ... except:
 Eg:  try:
         open_url()
except:
print (type_of_error)
But ZOO-Kernel seem doesn't with directly with "print function", moreover I would to write every error if they occur in the log file (error.log) or some where else.
I don't have any experience in this section. Can anyone kind help?

Many thanks

Quang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/zoo-discuss/attachments/20140211/ee9ea3eb/attachment.html>


More information about the Zoo-discuss mailing list