Skip to content

Commit 5d69444

Browse files
authored
Log username and email params
1 parent 704b390 commit 5d69444

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

sqlalchemy_bigquery/parse_url.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1919

2020
import re
21+
import logging
2122

2223
from google.cloud.bigquery import QueryJobConfig
2324
from google.cloud.bigquery.dataset import DatasetReference
@@ -31,7 +32,7 @@
3132

3233
GROUP_DELIMITER = re.compile(r"\s*\,\s*")
3334
KEY_VALUE_DELIMITER = re.compile(r"\s*\:\s*")
34-
35+
logger = logging.getLogger()
3536

3637
def parse_boolean(bool_string):
3738
bool_string = bool_string.lower()
@@ -62,14 +63,22 @@ def parse_url(url): # noqa: C901
6263
# maximum_billing_tier (deprecated)
6364
if "maximum_billing_tier" in query:
6465
raise ValueError("maximum_billing_tier is a deprecated argument")
65-
66+
67+
68+
username = url.username or None
69+
email = url.email or None
70+
71+
logger.critical('parse_url.py username', username)
72+
logger.critical('parse_url.py email', email)
73+
6674
project_id = url.host
6775
location = None
6876
dataset_id = url.database or None
6977
arraysize = None
7078
credentials_path = None
7179
credentials_base64 = None
7280
list_tables_page_size = None
81+
7382

7483
# location
7584
if "location" in query:

0 commit comments

Comments
 (0)