Skip to content

Commit c3d2e29

Browse files
committed
add comments
1 parent 232ade0 commit c3d2e29

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

example.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
BuffLog::error("I am an error");
1818
BuffLog::error("I am an error", ["mean" => "70"]);
1919

20-
BuffLog::criticals("I am criticals information with a typo and you shouldn't see me!");
20+
BuffLog::critical("I am criticals information with a typo and you shouldn't see me!");
2121
BuffLog::critical("I am critical information!", ["user" => "betrand"]);
2222

2323
BuffLog::critical("I'm critical log, here some extra fancy informations",

src/BuffLog/BuffLog.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ protected static function configureInstance()
4343
if (class_exists("\DDTrace\GlobalTracer")) {
4444
self::$hasGlobalTracer = true;
4545
} else {
46+
// local envs don't need tracing
4647
if (getenv("ENVIRONMENT") !== "local") {
4748
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.");
4849
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?");

0 commit comments

Comments
 (0)