Skip to content

Commit

Permalink
reenabled logging.
Browse files Browse the repository at this point in the history
#50 removed a bunch of  app.config['DEBUG'] = True
  • Loading branch information
valentinedwv committed Dec 7, 2015
1 parent aedecdc commit b131729
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion examples/flask/barebones/runserver_LCM.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def startServer(config='LCM_config.cfg',connection='sqlite:///LCM_Data/LCM.db',

dao = LCMDao(connection,config)
app = wof.flask.create_wof_flask_app(dao, config)
app.config['DEBUG'] = True
# app.config['DEBUG'] = True


url = "http://127.0.0.1:" + str(openPort)
Expand Down
2 changes: 1 addition & 1 deletion examples/flask/cbi/runserver_cbi.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def startServer(config=CBI_CONFIG_FILE,connection=CBI_CACHE_DATABASE_URI, openPo

cbi_dao = CbiDao(CBI_CONFIG_FILE, database_uri=CBI_CACHE_DATABASE_URI)
app = wof.flask.create_wof_flask_app(cbi_dao, config)
app.config['DEBUG'] = True
# app.config['DEBUG'] = True



Expand Down
2 changes: 1 addition & 1 deletion examples/flask/csv_server/runserver_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def startServer(config=CSV_CONFIG_FILE,
openPort=8080):
dao = CsvDao(sites_file, values_file)
app = wof.flask.create_wof_flask_app(dao, config)
app.config['DEBUG'] = True
# app.config['DEBUG'] = True


url = "http://127.0.0.1:" + str(openPort)
Expand Down
2 changes: 1 addition & 1 deletion examples/flask/csv_tutorial/solution/runserver_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def startServer(config=CSV_CONFIG_FILE,
openPort = 8080):
dao = CsvDao(sites_file, values_file)
app = wof.flask.create_wof_flask_app(dao, config)
app.config['DEBUG'] = True
# app.config['DEBUG'] = True
site_map = wof.site_map(app)


Expand Down
2 changes: 1 addition & 1 deletion examples/flask/csv_tutorial/tutorial/runserver_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def startServer(config=CSV_CONFIG_FILE,
openPort = 8080):
dao = CsvDao(sites_file, values_file)
app = wof.flask.create_wof_flask_app(dao, config)
app.config['DEBUG'] = True
# app.config['DEBUG'] = True
site_map = wof.site_map(app)


Expand Down
2 changes: 1 addition & 1 deletion examples/flask/odm_1_1/runserver_odm_1_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def startServer(connection, config='config.cfg',openPort=8080):
"""given an open file on connection, read it to get a connection string to open the database and start up flask running WOF."""
dao = OdmDao(connection.read())
app = wof.flask.create_wof_flask_app(dao, config)
app.config['DEBUG'] = True


configFile = WOFConfig(config)

Expand Down
2 changes: 1 addition & 1 deletion examples/flask/swis/runserver_swis.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def startServer(config=SWIS_CONFIG_FILE,connection=SWIS_DATABASE_URI, openPort=8

swis_dao = SwisDao(SWIS_CONFIG_FILE, database_uri=connection)
app = wof.flask.create_wof_flask_app(swis_dao, config)
app.config['DEBUG'] = True
# app.config['DEBUG'] = True


url = "http://127.0.0.1:" + str(openPort)
Expand Down
14 changes: 7 additions & 7 deletions wof/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
from wof.apps.spyned_1_1 import TWOFService as wml11
from wof.apps.waterml2 import TWOFService as wml2

#logging.basicConfig(level=logging.ERROR)
#logging.disable(logging.CRITICAL)

logging.getLogger('werkzeug').setLevel(logging.CRITICAL)
#logging.getLogger('spyne.model.complex').setLevel(logging.ERROR)
#logging.getLogger('spyne.interface._base').setLevel(logging.ERROR)
#logging.getLogger('spyne.util.appreg').setLevel(logging.ERROR)
#logging.getLogger('spyne.interface.xml_schema').setLevel(logging.ERROR)
#logging.getLogger('spyne.protocol.dictdoc.simple').setLevel(logging.ERROR)
logging.basicConfig(level=logging.ERROR)
logging.getLogger('spyne.model.complex').setLevel(logging.ERROR)
logging.getLogger('spyne.interface._base').setLevel(logging.ERROR)
logging.getLogger('spyne.util.appreg').setLevel(logging.ERROR)
logging.getLogger('spyne.interface.xml_schema').setLevel(logging.ERROR)
logging.getLogger('spyne.protocol.dictdoc.simple').setLevel(logging.ERROR)
logger = logging.getLogger(__name__)
logger_invalid = logging.getLogger(__name__ + ".invalid")

Expand Down

0 comments on commit b131729

Please sign in to comment.