Skip to content

Commit 282cf3c

Browse files
authored
Add Rich traceback (#573)
* feat: add rich tracebacks * clean * fix import * fix lock file
1 parent a40364b commit 282cf3c

File tree

3 files changed

+100
-97
lines changed

3 files changed

+100
-97
lines changed

manim/config/logger.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
__all__ = ["logger", "console"]
1111

1212

13-
import configparser
1413
import logging
1514

1615
from rich.console import Console
1716
from rich.logging import RichHandler
1817
from rich.theme import Theme
18+
from rich.traceback import install
1919
from rich import print as printf
2020
from rich import errors, color
2121
import json
@@ -114,7 +114,7 @@ def set_file_logger(log_file_path):
114114
logger = logging.getLogger("manim")
115115
# The console is set to None as it will be changed by set_rich_logger.
116116
console = None
117-
117+
install()
118118
# TODO : This is only temporary to keep the terminal output clean when working with ImageMobject and matplotlib plots
119119
logging.getLogger("PIL").setLevel(logging.INFO)
120120
logging.getLogger("matplotlib").setLevel(logging.INFO)

0 commit comments

Comments
 (0)