diff --git a/spotframework/__init__.py b/spotframework/__init__.py index 4125da8..45e6c44 100644 --- a/spotframework/__init__.py +++ b/spotframework/__init__.py @@ -6,13 +6,12 @@ logger.setLevel('DEBUG') if os.environ.get('DEPLOY_DESTINATION', None) == 'PROD': from google.cloud import logging as glogging - from google.cloud.logging.handlers import CloudLoggingHandler log_format = '%(funcName)s - %(message)s' formatter = logging.Formatter(log_format) client = glogging.Client() - handler = CloudLoggingHandler(client, name='spotframework') + handler = client.get_default_handler() handler.setFormatter(formatter)