From a73a7d1e7b4d96d209d029db6d72d2818330bce9 Mon Sep 17 00:00:00 2001 From: Stefano Palazzo Date: Fri, 23 Dec 2016 11:42:00 +0100 Subject: [PATCH] Make it possible to disable the logo by subclassing Config --- sanic/sanic.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sanic/sanic.py b/sanic/sanic.py index 98bb230d..2ef3507e 100644 --- a/sanic/sanic.py +++ b/sanic/sanic.py @@ -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))