Remove logging.root basicConfig on fbprophet import (#1336)

This commit is contained in:
Christoph Deil 2020-02-17 23:11:23 +01:00 committed by GitHub
parent 57990e6f50
commit 8c48f5b042
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,9 +19,7 @@ from fbprophet.models import StanBackendEnum
from fbprophet.plot import (plot, plot_components)
logger = logging.getLogger('fbprophet')
logger.addHandler(logging.NullHandler())
if len(logger.handlers) == 1:
logging.basicConfig(level=logging.INFO)
logger.setLevel(logging.INFO)
class Prophet(object):