Skip to content

Commit

Permalink
Added a mute for Logger
Browse files Browse the repository at this point in the history
  • Loading branch information
wiazur authored Dec 4, 2019
1 parent 3dfccbe commit 5cbabd2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions samples/search/web_search_samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
# Add your Bing Search V7 subscription key to your environment variables.
SUBSCRIPTION_KEY = os.environ['BING_SEARCH_V7_SUBSCRIPTION_KEY']

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


def result_types_lookup(subscription_key):
"""WebSearchResultTypesLookup.
Expand Down

0 comments on commit 5cbabd2

Please sign in to comment.