Skip to content

Commit

Permalink
🎨 Print agent label and version even if banner suppressed
Browse files Browse the repository at this point in the history
Signed-off-by: ff137 <[email protected]>
  • Loading branch information
ff137 committed Nov 14, 2024
1 parent 53d00fd commit 677364a
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions acapy_agent/core/conductor.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,26 +317,36 @@ async def start(self) -> None:

# Get agent label
default_label = context.settings.get("default_label")
public_did = self.setup_public_did and self.setup_public_did.did

if context.settings.get("log.banner", True):
if context.settings.get("transport.disabled"):
LoggingConfigurator.print_banner(
default_label,
None,
None,
self.setup_public_did and self.setup_public_did.did,
public_did,
self.admin_server,
)
else:
LoggingConfigurator.print_banner(
default_label,
self.inbound_transport_manager.registered_transports,
self.outbound_transport_manager.registered_transports,
self.setup_public_did and self.setup_public_did.did,
public_did,
self.admin_server,
)

LoggingConfigurator.print_notices(context.settings)
else:
LOGGER.info(default_label)
LOGGER.info("ver: %s", __version__)

if public_did:
LOGGER.info("Public DID Information")
LOGGER.info("DID: %s", public_did)

LOGGER.debug("Note: the rest of the startup banner is suppressed")

# record ACA-Py version in Wallet, if needed
from_version_storage = None
Expand Down

0 comments on commit 677364a

Please sign in to comment.