Skip to content

Commit f6a2835

Browse files
committed
do not use tracer locally
1 parent 5883134 commit f6a2835

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BuffLog/BuffLog.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ static public function getLogger()
4040
protected static function configureInstance()
4141
{
4242

43-
if (class_exists("\DDTrace\GlobalTracer")) {
43+
if (class_exists("\DDTrace\GlobalTracer") && getenv("ENVIRONMENT") !== "local") {
4444
self::$hasGlobalTracer = true;
4545
} else {
4646
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.");

0 commit comments

Comments
 (0)