(
    logger: Logger,
    transport_registry: TransportRegistry,
    schema: "Schema",
    plugin_registry: PluginRegistry,
    config: Config,
)
Show the worker-startup welcome message
Show the worker-startup welcome message
Show the worker - startup welcome message
def log_welcome_message(
    logger: Logger,
    transport_registry: TransportRegistry,
    schema: "Schema",
    plugin_registry: PluginRegistry,
    config: Config,
):
    """Show the worker-startup welcome message"""
    logger.info(
        LBullets(
            "Lightbus is setting up",
            items={
                "service_name (set with -s or LIGHTBUS_SERVICE_NAME)": Bold(config.service_name),
                "process_name (with with -p or LIGHTBUS_PROCESS_NAME)": Bold(config.process_name),
            },
        )
    )

    # Log the transport information
    rpc_transport = transport_registry.get_rpc_transport("default", default=None)
    result_transport = transport_registry.get_result_transport("default", default=None)
    event_transport = transport_registry.get_event_transport("default", default=None)
    log_transport_information(
        rpc_transport, result_transport, event_transport, schema.schema_transport, logger
    )

    if plugin_registry._plugins:
        logger.info(
            LBullets(
                "Loaded the following plugins ({})".format(len(plugin_registry._plugins)),
                items=plugin_registry._plugins,
            )
        )
    else:
        logger.info("No plugins loaded")
def log_welcome_message ( logger : Logger , transport_registry : TransportRegistry , schema : "Schema" , plugin_registry : PluginRegistry , config : Config , ) : logger . info ( LBullets ( "Lightbus is setting up" , items = { "service_name (set with -s or LIGHTBUS_SERVICE_NAME)" : Bold ( config . service_name ) , "process_name (with with -p or LIGHTBUS_PROCESS_NAME)" : Bold ( config . process_name ) , } , ) ) # Log the transport information rpc_transport = transport_registry . get_rpc_transport ( "default" , default = None ) result_transport = transport_registry . get_result_transport ( "default" , default = None ) event_transport = transport_registry . get_event_transport ( "default" , default = None ) log_transport_information ( rpc_transport , result_transport , event_transport , schema . schema_transport , logger ) if plugin_registry . _plugins : logger . info ( LBullets ( "Loaded the following plugins ({})" . format ( len ( plugin_registry . _plugins ) ) , items = plugin_registry . _plugins , ) ) else : logger . info ( "No plugins loaded" )