original_docstring: Add handler to logger if not already added.
docstring: Add handler to logger if not already added.
docstring_tokens: Add handler to logger if not already added .
code: def add_handler(logger, app):
      """Add handler to logger if not already added."""
      for h in logger.handlers:
          if type(h) == SentryHandler:
              return
  
      logger.addHandler(
          SentryHandler(
              app.extensions['sentry'].client,
              level=app.config['LOGGING_SENTRY_LEVEL']
          )
      )
code_tokens: def add_handler ( logger , app ) : for h in logger . handlers : if type ( h ) == SentryHandler : return logger . addHandler ( SentryHandler ( app . extensions [ 'sentry' ] . client , level = app . config [ 'LOGGING_SENTRY_LEVEL' ] ) )
short_docstring: Add handler to logger if not already added.
short_docstring_tokens: Add handler to logger if not already added .
comment: """Add handler to logger if not already added."""