Skip to content

Commit 568b25c

Browse files
averikitschAce Nassri
andauthored
chore(functions): Update import location (GoogleCloudPlatform#8067)
* chore(functions): Update import location * Update main.py Co-authored-by: Ace Nassri <anassri@google.com>
1 parent 0f21f48 commit 568b25c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

functions/v2/http_logging/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# limitations under the License.
1414

1515
# [START functions_structured_logging]
16+
import logging
17+
1618
import functions_framework
1719
from google.cloud.logging import Client
1820

@@ -27,8 +29,6 @@ def structured_logging(request):
2729
# https://googleapis.dev/python/logging/latest/handlers-structured-log.html
2830
cloud_logging_client.setup_logging()
2931

30-
# Import Python Standard Library
31-
import logging
3232
# Construct log message and additional metadata
3333
# https://cloud.google.com/run/docs/logging#using-json
3434
msg = "Hello, world!"

0 commit comments

Comments
 (0)