Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
Make dbecho option work as designed
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Dec 28, 2014
1 parent 75e7d4d commit 53bb28c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion bin/synoptic
Expand Up @@ -99,7 +99,9 @@ def main():
exists = os.access(dbname, os.F_OK)

from synoptic import DBSessionInjector
app = dbinj = DBSessionInjector(app, "sqlite:///%s" % args[0], exists)
app = dbinj = DBSessionInjector(
app, "sqlite:///%s" % args[0], exists,
echo=options.dbecho)

from synoptic import ErrorMiddleware
app = ErrorMiddleware(app)
Expand Down
2 changes: 1 addition & 1 deletion synoptic/__init__.py
Expand Up @@ -123,7 +123,7 @@ def __init__(self, sub_app, dburl, exists, echo=False):
from sqlalchemy import create_engine
self.engine = create_engine(
dburl, poolclass=NullPool,
#echo=True
echo=echo
)

from synoptic.datamodel import DataModel
Expand Down

0 comments on commit 53bb28c

Please sign in to comment.