Updated banner a little bit.
@@ -149,8 +149,15 @@ def get_default_logging_format(palette: ConsolePalette = DEFAULT_PALETTE) -> str
)
-DEFAULT_BANNER_ARGS: typing.Final[typing.Mapping[str, str]] = types.MappingProxyType(
- {
+def _default_banner_args() -> typing.Mapping[str, str]:
+ system_bits = (
+ platform.release(),
+ platform.system(),
+ platform.machine(),
+ )
+ filtered_system_bits = (s.strip() for s in system_bits if s.strip())
+
+ return {
# Hikari stuff.
"hikari_version": _about.__version__,
"hikari_git_branch": _about.__git_branch__,
@@ -169,12 +176,11 @@ DEFAULT_BANNER_ARGS: typing.Final[typing.Mapping[str, str]] = types.MappingProxy
"python_branch": platform.python_branch(),
"python_compiler": platform.python_compiler(),
# Platform specific stuff I might remove later.
- "libc_version": " ".join(platform.libc_ver()),
- # System stuff.
- "platform_system": platform.system(),
- "platform_architecture": " ".join(platform.architecture()),
+ "system_description": " ".join(filtered_system_bits),
}
-)
+
+
+DEFAULT_BANNER_ARGS: typing.Final[typing.Mapping[str, str]] = _default_banner_args()
def get_banner(
