-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make DD_LOG_BACKTRACE disabled by default again + make it mutually ex…
…clusive with DD_CRASHTRACKING_ENABLED
- Loading branch information
Showing
4 changed files
with
35 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
tests/ext/crashtracker_and_backtrace_are_mutually_exclusive.phpt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--TEST-- | ||
Settings 'datadog.log_backtrace' and 'datadog.crashtracking_enabled' are mutually exclusive | ||
--SKIPIF-- | ||
<?php | ||
if (PHP_OS != "Linux") die('skip: Crashtracker/backtrace are only available on Linux'); | ||
if (getenv('DD_TRACE_CLI_ENABLED') === '0') die("skip: tracer is disabled"); | ||
?> | ||
--ENV-- | ||
DD_TRACE_LOG_LEVEL=warn,span=off,startup=off | ||
DD_LOG_BACKTRACE=1 | ||
DD_CRASHTRACKING_ENABLED=1 | ||
--INI-- | ||
datadog.trace.log_file=file://stdout | ||
--FILE-- | ||
<?php | ||
|
||
print_r(1); | ||
|
||
?> | ||
--EXPECTF-- | ||
[ddtrace] [warning] Settings 'datadog.log_backtrace' and 'datadog.crashtracking_enabled' are mutually exclusive. Cannot enable the backtrace. | ||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters