Skip to content

Commit 3559f5b

Browse files
add NullHandler to library logger
1 parent c0eef0a commit 3559f5b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bigquery/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import calendar
22
import json
3-
from logging import getLogger
3+
from logging import getLogger, NullHandler
44
from collections import defaultdict
55
from datetime import datetime, timedelta
66
from hashlib import sha256
@@ -47,6 +47,7 @@
4747
JOB_DESTINATION_FORMAT_CSV = JOB_FORMAT_CSV
4848

4949
logger = getLogger(__name__)
50+
logger.addHandler(logging.NullHandler())
5051

5152

5253
def get_client(project_id=None, credentials=None,

0 commit comments

Comments
 (0)