Skip to content

Commit

Permalink
Use rich logging instead of coloredlogs (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
Skazza94 committed Jan 30, 2024
1 parent b30c293 commit 1c08ff5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ dependencies = [
"docker>=7.0.0",
"kubernetes>=23.3.0",
"requests>=2.22.0",
"coloredlogs>=10.0",
"terminaltables>=3.1.0",
"slug>=2.0",
"deepdiff==6.2.2",
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"docker>=7.0.0",
"kubernetes>=23.3.0",
"requests>=2.22.0",
"coloredlogs>=10.0",
"terminaltables>=3.1.0",
"slug>=2.0",
"deepdiff==6.2.2",
Expand Down
7 changes: 5 additions & 2 deletions src/kathara.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import os
import sys

import coloredlogs
from rich.logging import RichHandler

from Kathara import utils
from Kathara.auth.PrivilegeHandler import PrivilegeHandler
Expand Down Expand Up @@ -126,6 +126,9 @@ def __init__(self) -> None:
except SettingsError:
debug_level = "DEBUG"

coloredlogs.install(fmt='%(levelname)s - %(message)s', level=debug_level)
logging.basicConfig(
level=debug_level, format="%(message)s",
handlers=[RichHandler(rich_tracebacks=True, show_time=False, show_path=False)]
)

KatharaEntryPoint()
1 change: 0 additions & 1 deletion src/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ binaryornot>=0.4.4;
docker>=7.0.0;
kubernetes>=23.3.0;
requests>=2.22.0;
coloredlogs>=10.0;
terminaltables>=3.1.0;
slug>=2.0;
deepdiff==6.2.2;
Expand Down

0 comments on commit 1c08ff5

Please sign in to comment.