X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fipsilon.git;a=blobdiff_plain;f=ipsilon%2Futil%2Fdata.py;h=0981c52408a18e69cbaa0d82decc490b2f9b8d6a;hp=52fde62cca62051dda486d99aa711369e558fc14;hb=3ffc77559c269b85385350166f5392cab654c429;hpb=24fa1f2acd9cb84342064ec59b311968353fd0ae diff --git a/ipsilon/util/data.py b/ipsilon/util/data.py index 52fde62..0981c52 100644 --- a/ipsilon/util/data.py +++ b/ipsilon/util/data.py @@ -69,7 +69,10 @@ class SqlStore(BaseStore): # It's not possible to share connections for SQLite between # threads, so let's use the SingletonThreadPool for them pool_args = {'poolclass': SingletonThreadPool} - self._dbengine = create_engine(engine_name, **pool_args) + self._dbengine = create_engine(engine_name, + echo=cherrypy.config.get('db.echo', + False), + **pool_args) self.is_readonly = False def add_constraint(self, constraint):