Skip to content

Commit 5cbabd2

Browse files
authored
Added a mute for Logger
1 parent 3dfccbe commit 5cbabd2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

samples/search/web_search_samples.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
# Add your Bing Search V7 subscription key to your environment variables.
66
SUBSCRIPTION_KEY = os.environ['BING_SEARCH_V7_SUBSCRIPTION_KEY']
77

8+
# Comment this logging mute out, if you want to include logging
9+
logger = logging.getLogger() # get the default logger
10+
logger.setLevel(50) # set the skip all log which is smaller than critical (50)
11+
812

913
def result_types_lookup(subscription_key):
1014
"""WebSearchResultTypesLookup.

0 commit comments

Comments
 (0)