Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
restran committed May 28, 2017
1 parent 61e5a2c commit eab30f0
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 2 deletions.
File renamed without changes.
File renamed without changes
1 change: 1 addition & 0 deletions fomalhaut/runserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def main():
server = httpserver.HTTPServer(app, xheaders=True)
server.listen(options.port, options.host)
logger.info('fomalhaut is running on %s:%s' % (options.host, options.port))
# ioloop.IOLoop.instance().start()

if sys.version_info >= (3, 5) and not PYPY:
# python 3.5 以上版本,可以使用 uvloop 来加速
Expand Down
2 changes: 1 addition & 1 deletion fomalhaut/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@

logging.config.dictConfig({
'version': 1,
'disable_existing_loggers': True,
'disable_existing_loggers': False,
'formatters': {
'verbose': {
'format': "[%(asctime)s] %(levelname)s [%(name)s:%(lineno)s] %(message)s",
Expand Down
2 changes: 1 addition & 1 deletion fomalhaut/tests/api_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def get(self):
content_type = self.request.headers.get('Content-Type')
if content_type:
self.set_header('Content-Type', content_type)
yield gen.sleep(1)
yield gen.sleep(0.5)
self.write('get')


Expand Down

0 comments on commit eab30f0

Please sign in to comment.