Make it possible to disable the logo by subclassing Config

This commit is contained in:
Stefano Palazzo 2016-12-23 11:42:00 +01:00
parent ef9d8710f5
commit a73a7d1e7b

View File

@ -294,7 +294,8 @@ class Sanic:
if debug:
log.setLevel(logging.DEBUG)
log.debug(self.config.LOGO)
if self.config.LOGO is not None:
log.debug(self.config.LOGO)
# Serve
log.info('Goin\' Fast @ http://{}:{}'.format(host, port))