def setup_common(): FLAGS(sys.argv) _setup_logging() settings.validate() eventlog.connect() _setup_bottle() if FLAGS.debug: bottle.debug()