reverted logging to retrieving default handler
This commit is contained in:
parent
9af0b4f03d
commit
04840b3cd5
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user