mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
Moving away from using the root logger everywhere (#9099)
* Moving away from using the root logger everywhere * self.logger -> logger
This commit is contained in:
@@ -21,6 +21,8 @@ from logging.handlers import TimedRotatingFileHandler
|
||||
import flask.app
|
||||
import flask.config
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
# pylint: disable=too-few-public-methods
|
||||
class LoggingConfigurator(abc.ABC):
|
||||
@@ -64,4 +66,4 @@ class DefaultLoggingConfigurator(LoggingConfigurator):
|
||||
)
|
||||
logging.getLogger().addHandler(handler)
|
||||
|
||||
logging.info("logging was configured successfully")
|
||||
logger.info("logging was configured successfully")
|
||||
|
||||
Reference in New Issue
Block a user