We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a7965d commit 2448242Copy full SHA for 2448242
1 file changed
src/agentex/lib/utils/logging.py
@@ -7,8 +7,6 @@
7
import ddtrace
8
from ddtrace import tracer
9
10
-from agentex.lib.environment_variables import Environment, EnvironmentVariables
11
-
12
_is_datadog_configured = bool(os.environ.get("DD_AGENT_HOST"))
13
14
ctx_var_request_id = contextvars.ContextVar[str]("request_id")
@@ -56,8 +54,8 @@ def make_logger(name: str) -> logging.Logger:
56
54
logger = logging.getLogger(name)
57
55
logger.setLevel(logging.INFO)
58
59
- environment_variables = EnvironmentVariables.refresh()
60
- if environment_variables.ENVIRONMENT != Environment.STAGING and environment_variables.ENVIRONMENT != Environment.PROD:
+ environment = os.getenv("ENVIRONMENT")
+ if environment == "local":
61
console = Console()
62
# Add the RichHandler to the logger to print colored text
63
handler = RichHandler(
0 commit comments