[Zope-DB] ZMySQLDA losing connections?

Dieter Maurer dieter at handshake.de
Tue Jan 6 14:43:55 EST 2004


Ben Durbin wrote at 2004-1-5 14:15 -0800:
> ...
>The traceback at the bottom of this message is indicative of the error 
>messages we start seeing.  What's common is the error type, message, and 
>offending line "Module Shared.DC.ZRDB.DA, line 399, in __call__"
>
>The applicable lines in DA.py are:
>
>         try: dbc=getattr(self, self.connection_id)
>         except AttributeError:
>             raise AttributeError, (
>                 "The database connection <em>%s</em> cannot be 
>found." % 		(
>                 self.connection_id))
>
>399-->        try: DB__=dbc()
>         except: raise 'Database Error', (
>             '%s is not connected to a database' % self.id)
>
>Since the except on line 400 is masking the exception thrown by dbc() 
>it's hard for me to tell if this is a problem with ZMySQLDA or MySQLdb. 

Log the exception before the "raise" (search the source for "LOG"
for examples or look into "zLOG/__init__.py" for documentation).

How to activate Zope logging is described in "doc/LOGGING.txt".


-- 
Dieter



More information about the Zope-DB mailing list