Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def setup_app(args, config):
if config.DEBUG:
verbose = 3
else:
verbose = args.verbose or 0
logger_config(verbose=verbose, to_file=config.LOG_TO_FILE)
Signal.setup_aio_support()
app = create_app(config)
return app