From 4d91f2874db3c6929069f2e31b678e3ec19e768f Mon Sep 17 00:00:00 2001 From: Tim Swast Date: Tue, 24 Oct 2023 13:51:14 -0500 Subject: [PATCH 1/2] fix: don't override the global logging config --- bigframes/clients.py | 4 +--- bigframes/remote_function.py | 6 +----- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/bigframes/clients.py b/bigframes/clients.py index 4ba9d93d69..1c09848258 100644 --- a/bigframes/clients.py +++ b/bigframes/clients.py @@ -24,9 +24,7 @@ from google.cloud import bigquery_connection_v1, resourcemanager_v3 from google.iam.v1 import iam_policy_pb2, policy_pb2 -logging.basicConfig( - level=logging.INFO, format="[%(levelname)s][%(asctime)s][%(name)s] %(message)s" -) + logger = logging.getLogger(__name__) diff --git a/bigframes/remote_function.py b/bigframes/remote_function.py index c82ba84056..dfd620c91b 100644 --- a/bigframes/remote_function.py +++ b/bigframes/remote_function.py @@ -53,11 +53,7 @@ from bigframes import clients import bigframes.constants as constants -# TODO(shobs): Change the min log level to INFO after the development stabilizes -# before June 2023 -logging.basicConfig( - level=logging.INFO, format="[%(levelname)s][%(asctime)s][%(name)s] %(message)s" -) + logger = logging.getLogger(__name__) # Protocol version 4 is available in python version 3.4 and above From a7d7094b8c66035bf2abcba9f401fb8436815d8c Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 24 Oct 2023 18:53:42 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- bigframes/clients.py | 1 - bigframes/remote_function.py | 1 - 2 files changed, 2 deletions(-) diff --git a/bigframes/clients.py b/bigframes/clients.py index 1c09848258..de2421e499 100644 --- a/bigframes/clients.py +++ b/bigframes/clients.py @@ -24,7 +24,6 @@ from google.cloud import bigquery_connection_v1, resourcemanager_v3 from google.iam.v1 import iam_policy_pb2, policy_pb2 - logger = logging.getLogger(__name__) diff --git a/bigframes/remote_function.py b/bigframes/remote_function.py index dfd620c91b..a39cd033f6 100644 --- a/bigframes/remote_function.py +++ b/bigframes/remote_function.py @@ -53,7 +53,6 @@ from bigframes import clients import bigframes.constants as constants - logger = logging.getLogger(__name__) # Protocol version 4 is available in python version 3.4 and above