From d92df9c03f8510042ee1f8949d0786761f01d35e Mon Sep 17 00:00:00 2001 From: Scott Gasch Date: Wed, 15 Sep 2021 16:08:50 -0700 Subject: Logging + documentation. --- ansi.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ansi.py') diff --git a/ansi.py b/ansi.py index 769b29c..dfbf48a 100755 --- a/ansi.py +++ b/ansi.py @@ -8,6 +8,8 @@ import re import sys from typing import Any, Callable, Dict, Iterable, Optional, Tuple +import logging_utils + logger = logging.getLogger(__name__) # https://en.wikipedia.org/wiki/ANSI_escape_code @@ -1726,6 +1728,7 @@ def _find_color_by_name(name: str) -> Tuple[int, int, int]: return rgb +@logging_utils.squelch_repeated_log_messages(1) def fg(name: Optional[str] = "", red: Optional[int] = None, green: Optional[int] = None, -- cgit v1.3