This method starts the webserver with a specific App subclass.
(main_gui_class, **kwargs)
| 946 | |
| 947 | |
| 948 | def start(main_gui_class, **kwargs): |
| 949 | """This method starts the webserver with a specific App subclass.""" |
| 950 | debug = True if sys.flags.debug else kwargs.pop('debug', False) |
| 951 | standalone = kwargs.pop('standalone', False) |
| 952 | |
| 953 | logging.basicConfig(level=logging.DEBUG if debug else logging.INFO, |
| 954 | format='%(name)-16s %(levelname)-8s %(message)s') |
| 955 | logging.getLogger('remi').setLevel( |
| 956 | level=logging.DEBUG if debug else logging.INFO) |
| 957 | |
| 958 | if standalone: |
| 959 | s = StandaloneServer(main_gui_class, start=True, **kwargs) |
| 960 | else: |
| 961 | s = Server(main_gui_class, start=True, **kwargs) |
| 962 |
no test coverage detected