Show extra startup messages the first time the server is run, ignoring the reloader.
(debug: bool, app_import_path: str | None)
| 772 | |
| 773 | |
| 774 | def show_server_banner(debug: bool, app_import_path: str | None) -> None: |
| 775 | """Show extra startup messages the first time the server is run, |
| 776 | ignoring the reloader. |
| 777 | """ |
| 778 | if is_running_from_reloader(): |
| 779 | return |
| 780 | |
| 781 | if app_import_path is not None: |
| 782 | click.echo(f" * Serving Flask app '{app_import_path}'") |
| 783 | |
| 784 | if debug is not None: |
| 785 | click.echo(f" * Debug mode: {'on' if debug else 'off'}") |
| 786 | |
| 787 | |
| 788 | class CertParamType(click.ParamType): |