From 8e88ae2a3e33a3318763bbadca29a4be341e889d Mon Sep 17 00:00:00 2001 From: aj Date: Sun, 26 Jan 2020 14:07:17 +0000 Subject: [PATCH] fixing double logging --- music/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)