Skip to content

Commit af48b8a

Browse files
committed
fix: default log level
1 parent 5007a5a commit af48b8a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ console:
77
uv run textual console -x SYSTEM -x EVENT -x DEBUG -x INFO
88

99
dev:
10-
uv run textual run --dev -c chat
10+
LOG_LEVEL=NOTSET uv run textual run --dev -c chat
1111

1212
lint:
1313
uv run ruff check --fix src

src/agent_chat_cli/utils/logger.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
import json
22
import logging
3+
import os
34
from typing import Any
45

56
from textual.logging import TextualHandler
67

78

89
def setup_logging():
10+
level = os.getenv("LOG_LEVEL", "INFO").upper()
11+
912
logging.basicConfig(
10-
level="NOTSET",
13+
level=level,
1114
handlers=[TextualHandler()],
1215
)
1316

0 commit comments

Comments
 (0)