diff --git a/music/__init__.py b/music/__init__.py index 85fce74..37e6942 100644 --- a/music/__init__.py +++ b/music/__init__.py @@ -12,14 +12,13 @@ spotfm_logger = logging.getLogger('spotfm') if os.environ.get('DEPLOY_DESTINATION', None) == 'PROD': import google.cloud.logging - from google.cloud.logging.handlers import CloudLoggingHandler, setup_logging + from google.cloud.logging.handlers import CloudLoggingHandler log_format = '%(funcName)s - %(message)s' formatter = logging.Formatter(log_format) client = google.cloud.logging.Client() handler = CloudLoggingHandler(client, name="music-tools") - setup_logging(handler) handler.setFormatter(formatter)