You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/BuffLog/BuffLog.php
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -40,11 +40,13 @@ static public function getLogger()
40
40
protectedstaticfunctionconfigureInstance()
41
41
{
42
42
43
-
if (class_exists("\DDTrace\GlobalTracer") && getenv("ENVIRONMENT") !== "local") {
43
+
if (class_exists("\DDTrace\GlobalTracer")) {
44
44
self::$hasGlobalTracer = true;
45
45
} else {
46
-
error_log("Tip #1: Can't find \DDTrace\GlobalTracer class. Did you install the Datadog APM tracer extension? It will allow you to have logs enriched with traces making troubleshooting easier.");
47
-
error_log("Tip #2: If you run a cli mode service (such as a worker), did you set the DD_TRACE_CLI_ENABLED env variable?");
46
+
if (getenv("ENVIRONMENT") !== "local") {
47
+
error_log("Tip #1: Can't find \DDTrace\GlobalTracer class. Did you install the Datadog APM tracer extension? It will allow you to have logs enriched with traces making troubleshooting easier.");
48
+
error_log("Tip #2: If you run a cli mode service (such as a worker), did you set the DD_TRACE_CLI_ENABLED env variable?");
49
+
}
48
50
}
49
51
50
52
// @TODO: We could potentially use the Kubernetes downward API to
0 commit comments