Merge pull request #351 from r0fls/revert-log-changes

use string formatting in start message
This commit is contained in:
Eli Uriegas 2017-01-26 17:17:49 -06:00 committed by GitHub
commit c1f1dca22c

View File

@ -351,7 +351,7 @@ class Sanic:
proto = "http" proto = "http"
if ssl is not None: if ssl is not None:
proto = "https" proto = "https"
log.info('Goin\' Fast @ {}://{}:{}', proto, host, port) log.info('Goin\' Fast @ {}://{}:{}'.format(proto, host, port))
try: try:
if workers == 1: if workers == 1:
@ -430,7 +430,7 @@ class Sanic:
proto = "http" proto = "http"
if ssl is not None: if ssl is not None:
proto = "https" proto = "https"
log.info('Goin\' Fast @ {}://{}:{}', proto, host, port) log.info('Goin\' Fast @ {}://{}:{}'.format(proto, host, port))
return await serve(**server_settings) return await serve(**server_settings)