def inject_quiet(levels):
loggers = list(Logger.manager.loggerDict.items())<EOL>loggers.append(("<STR_LIT:root>", getLogger()))<EOL>level_filter = LevelFilter(levels)<EOL>for logger_name, logger in loggers:<EOL><INDENT>for handler in getattr(logger, "<STR_LIT>", []):<EOL><INDENT>handler.addFilter(level_filter)<EOL><DEDENT><DEDENT>
see --quiet flag help for what this does