Skip to content
Snippets Groups Projects
Commit 14955c87 authored by Thomas Kluyver's avatar Thomas Kluyver
Browse files

Misc fixes

parent 67ad1d86
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,6 @@ def main(): ...@@ -20,7 +20,6 @@ def main():
ap = argparse.ArgumentParser() ap = argparse.ArgumentParser()
ap.add_argument('--debug', action='store_true') ap.add_argument('--debug', action='store_true')
ap.add_argument('--db', default='calparrot.sqlite') ap.add_argument('--db', default='calparrot.sqlite')
ap.add_argument()
args = ap.parse_args() args = ap.parse_args()
logging.basicConfig(level=logging.DEBUG if args.debug else logging.INFO) logging.basicConfig(level=logging.DEBUG if args.debug else logging.INFO)
...@@ -28,7 +27,7 @@ def main(): ...@@ -28,7 +27,7 @@ def main():
calcat_cfg = restful_config.get('calcat', {}) calcat_cfg = restful_config.get('calcat', {})
calcat_cfg.setdefault('base_url', 'http://exflcalproxy:8080/') calcat_cfg.setdefault('base_url', 'http://exflcalproxy:8080/')
calcat_cfg.setdefault('use_oauth2', False) calcat_cfg.setdefault('use_oauth2', False)
log.info("Upstream is %s (user %s)", calcat_cfg['base_url'], calcat_cfg['user_email']) log.info("Upstream is %s", calcat_cfg['base_url'])
app = make_app(calcat_cfg, args.db) app = make_app(calcat_cfg, args.db)
sockets = bind_sockets(0, '127.0.0.1') sockets = bind_sockets(0, '127.0.0.1')
......
...@@ -196,4 +196,4 @@ def make_app(creds, db_path='calparrot.sqlite'): ...@@ -196,4 +196,4 @@ def make_app(creds, db_path='calparrot.sqlite'):
async def listen(app): async def listen(app):
quit_evt = app.settings['calparrot_quit_event'] quit_evt = app.settings['calparrot_quit_event']
await quit_evt await quit_evt.wait()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment