title: Python Logger printing two times
body: <p>Here is the code I have and it is printing logs two time
  ```</p>
  
  <pre><code>def get_logger(name, verbose=False):
    # create logger
    logger = logging.getLogger(name)
  
    # create console handler and set level to debug
    ch = logging.StreamHandler()
  
    if verbose:
        logger.setLevel(logging.DEBUG)
        ch.setLevel(logging.DEBUG)
    else:
        logger.setLevel(logging.INFO)
        ch.setLevel(logging.INFO)
  
    # create formatter
    formatter = logging.Formatter('%(asctime)s : [%(name)s] : %(levelname)s : %(message)s')
  
    # add formatter to ch
    ch.setFormatter(formatter)
  
    # add ch to logger
    logger.addHandler(ch)
    return logger
  </code></pre>
  
  <p>```</p>
  
  <p>Not sure why is it printing two times on the screen. What is wrong here?</p>