File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 77import ddtrace
88from ddtrace import tracer
99
10- from agentex .lib .environment_variables import Environment , EnvironmentVariables
11-
1210_is_datadog_configured = bool (os .environ .get ("DD_AGENT_HOST" ))
1311
1412ctx_var_request_id = contextvars .ContextVar [str ]("request_id" )
@@ -56,8 +54,8 @@ def make_logger(name: str) -> logging.Logger:
5654 logger = logging .getLogger (name )
5755 logger .setLevel (logging .INFO )
5856
59- environment_variables = EnvironmentVariables . refresh ( )
60- if environment_variables . ENVIRONMENT != Environment . STAGING and environment_variables . ENVIRONMENT != Environment . PROD :
57+ environment = os . getenv ( "ENVIRONMENT" )
58+ if environment == "local" :
6159 console = Console ()
6260 # Add the RichHandler to the logger to print colored text
6361 handler = RichHandler (
You can’t perform that action at this time.
0 commit comments