
import logging

def InitLogging():
    """
    Initizalize the logging.
    """

    logging.basicConfig(format='%(module)s:%(levelname)s:%(message)s', level=logging.INFO)

    # suppress all logs except critical ones from boto
    logging.getLogger('boto').setLevel(logging.CRITICAL)

    logging.getLogger('bmemcached').setLevel(logging.ERROR)

    logging.captureWarnings(True)


import logging

def InitLogging():
    """
    Initizalize the logging.
    """

    logging.basicConfig(format='%(module)s:%(levelname)s:%(message)s', level=logging.INFO)

    # suppress all logs except critical ones from boto
    logging.getLogger('boto').setLevel(logging.CRITICAL)

    logging.getLogger('bmemcached').setLevel(logging.ERROR)

    logging.getLogger('googleapiclient.discovery_cache').setLevel(logging.ERROR)

    logging.captureWarnings(True)

Hide ignorable error from googleApiClient
Hide ignorable error from googleApiClient

  
  import logging
  
  def InitLogging():
      """
      Initizalize the logging.
      """
  
      logging.basicConfig(format='%(module)s:%(levelname)s:%(message)s', level=logging.INFO)
  
      # suppress all logs except critical ones from boto
      logging.getLogger('boto').setLevel(logging.CRITICAL)
  
      logging.getLogger('bmemcached').setLevel(logging.ERROR)
  
+     logging.getLogger('googleapiclient.discovery_cache').setLevel(logging.ERROR)
+ 
      logging.captureWarnings(True)
  
Hide ignorable error from googleApiClient
## Code Before:

import logging

def InitLogging():
    """
    Initizalize the logging.
    """

    logging.basicConfig(format='%(module)s:%(levelname)s:%(message)s', level=logging.INFO)

    # suppress all logs except critical ones from boto
    logging.getLogger('boto').setLevel(logging.CRITICAL)

    logging.getLogger('bmemcached').setLevel(logging.ERROR)

    logging.captureWarnings(True)

## Instruction:
Hide ignorable error from googleApiClient
## Code After:

import logging

def InitLogging():
    """
    Initizalize the logging.
    """

    logging.basicConfig(format='%(module)s:%(levelname)s:%(message)s', level=logging.INFO)

    # suppress all logs except critical ones from boto
    logging.getLogger('boto').setLevel(logging.CRITICAL)

    logging.getLogger('bmemcached').setLevel(logging.ERROR)

    logging.getLogger('googleapiclient.discovery_cache').setLevel(logging.ERROR)

    logging.captureWarnings(True)
