use string formatting in start message

This commit is contained in:
Raphael Deem 2017-01-26 15:11:53 -08:00
parent d1c4f3172f
commit 965fbc917d

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)