Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions goblet/app.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
import json
import logging
import sys
import os
import sys
from typing import List

from goblet_gcp_client.client import get_default_project
from google.cloud.logging.handlers import StructuredLogHandler
from google.cloud.logging_v2.handlers import setup_logging

from goblet.config import GConfig
import goblet.globals as g
from goblet.config import GConfig
from goblet.decorators import Goblet_Decorators
from goblet.resource_manager import Resource_Manager

from google.cloud.logging.handlers import StructuredLogHandler
from google.cloud.logging_v2.handlers import setup_logging
from typing import List

logging.basicConfig()

log = logging.getLogger("goblet.app")
Expand Down Expand Up @@ -71,7 +72,7 @@ def local_func(request):
self.log = logging.getLogger("werkzeug")
elif not os.environ.get("X-GOBLET-DEPLOY"):
self.log.handlers.clear()
handler = StructuredLogHandler()
handler = StructuredLogHandler(project_id=get_default_project())
setup_logging(
handler,
log_level=logging.getLevelName(
Expand Down