mirror of
https://github.com/kittywitch/konawall-py.git
synced 2026-02-09 12:29:19 -08:00
Changes from Windows
This commit is contained in:
parent
a3ff57bc21
commit
b2cf9c4870
2 changed files with 12 additions and 12 deletions
|
|
@ -2,7 +2,7 @@ import logging
|
|||
import termcolor
|
||||
|
||||
"""
|
||||
Print a key-value pair with a key and value coloured differently.
|
||||
Print a key-value pair with a key and value.
|
||||
|
||||
:param key: The key to print
|
||||
:param value: The value to print
|
||||
|
|
@ -11,4 +11,4 @@ Print a key-value pair with a key and value coloured differently.
|
|||
"""
|
||||
def kv_print(key: str, value: str, level: str = "INFO") -> None:
|
||||
logger = getattr(logging, level.lower())
|
||||
logger(termcolor.colored(key, "cyan") + ": " + termcolor.colored(value, "white"))
|
||||
logger(f"{key}: {value}")
|
||||
Loading…
Add table
Add a link
Reference in a new issue