Disable echoing of SQLAlchemy Egine
We don't need this extensive output for production
This commit is contained in:
@@ -54,7 +54,7 @@ url = URL( "mysql+pymysql",
|
|||||||
database=config.db_username + jogobot.config['db_suffix'],
|
database=config.db_username + jogobot.config['db_suffix'],
|
||||||
query={'charset': 'utf8'} )
|
query={'charset': 'utf8'} )
|
||||||
|
|
||||||
engine = create_engine(url, echo=True)
|
engine = create_engine(url, echo=False)
|
||||||
|
|
||||||
|
|
||||||
Session = sessionmaker(bind=engine)
|
Session = sessionmaker(bind=engine)
|
||||||
|
|||||||
Reference in New Issue
Block a user