diff options
author | Lars Wirzenius <liw@liw.fi> | 2019-01-05 19:31:01 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2019-01-05 19:31:01 +0200 |
commit | b30ce533b86de9d3ebaf36046f253e3d50fc5469 (patch) | |
tree | 6da4c57642a513afc941da448072c48b1e7201ef /effiapi | |
parent | 51d7d29a8c3f2c090677474c5b7490eea25aad39 (diff) | |
download | effi-reg-b30ce533b86de9d3ebaf36046f253e3d50fc5469.tar.gz |
Fix: use RealHTTPAPI unless fake is explicitly requested
Diffstat (limited to 'effiapi')
-rwxr-xr-x | effiapi | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -294,12 +294,12 @@ if config.get('pid'): with open(config['pid'], 'w') as f: f.write(str(pid)) -if config.get('fake', False): - logging.info("Using RealHTTPAPI") - httpapi = RealHTTPAPI() -else: +if config.get('fake'): logging.info("Using FakeHTTPAPI") httpapi = FakeHTTPAPI() +else: + logging.info("Using RealHTTPAPI") + httpapi = RealHTTPAPI() app = bottle.default_app() api = API(httpapi, app, config) |