Skip to content

Commit b3fb5d4

Browse files
LaunchDarklyReleaseBoteli-darklyhroederldLaunchDarklyCIbwoskow-ld
authored
prepare 5.1.1 release (#180)
## [5.1.1] - 2023-07-11 ### Changed: - Invalid context log message now includes the flag key as part of the Psr\Log context. (Thanks, [mrtus](#179)!) - Error logging now includes the exception in the Psr\Log exception context key. (Thanks, [mrtus](#177)!) --------- Co-authored-by: Eli Bishop <eli@launchdarkly.com> Co-authored-by: hroederld <46500128+hroederld@users.noreply.github.com> Co-authored-by: LaunchDarklyCI <dev@launchdarkly.com> Co-authored-by: Ben Woskow <48036130+bwoskow-ld@users.noreply.github.com> Co-authored-by: Ben Woskow <bwoskow@launchdarkly.com> Co-authored-by: Gavin Whelan <gwhelan@launchdarkly.com> Co-authored-by: elliot <elliot@debian.elliot> Co-authored-by: Elliot Haisley <35050275+Apache-HB@users.noreply.github.com> Co-authored-by: Harpo Roeder <hroeder@launchdarkly.com> Co-authored-by: LaunchDarklyReleaseBot <launchdarklyreleasebot@launchdarkly.com> Co-authored-by: Ember Stevens <ember.stevens@launchdarkly.com> Co-authored-by: ember-stevens <79482775+ember-stevens@users.noreply.github.com> Co-authored-by: Matthew M. Keeler <keelerm84@gmail.com> Co-authored-by: charukiewicz <charukiewicz@protonmail.com> Co-authored-by: Joey Malinowski <joemalin95@gmail.com> Co-authored-by: Christian Charukiewicz <christian@foxhound.systems> Co-authored-by: Matthew M. Keeler <mkeeler@launchdarkly.com> Co-authored-by: Colin Henwood <aretenz@users.noreply.github.com> Co-authored-by: Colin Henwood <colin.henwood@xero.com> Co-authored-by: Eli Bishop <35503443+eli-darkly@users.noreply.github.com> Co-authored-by: Louis Chan <lchan@launchdarkly.com> Co-authored-by: ld-repository-standards[bot] <113625520+ld-repository-standards[bot]@users.noreply.github.com> Co-authored-by: Kane Parkinson <93555788+kparkinson-ld@users.noreply.github.com> Co-authored-by: Michiel Devriese <michieldevriese@gmail.com>
1 parent 62d5be2 commit b3fb5d4

File tree

5 files changed

+24
-7
lines changed

5 files changed

+24
-7
lines changed

.circleci/config.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ jobs:
6363
- setup_remote_docker
6464
- checkout
6565

66+
- run:
67+
name: Install xdebug
68+
command: sudo pecl install xdebug
6669
- run:
6770
name: validate composer.json
6871
command: composer validate
@@ -96,8 +99,9 @@ jobs:
9699
command: mkdir -p build/contract-tests-output && make run-contract-tests
97100

98101
- store_test_results:
99-
path: build/phpunit
102+
path: build/phpunit/junit.xml
100103
- store_test_results:
101104
path: build/contract-tests-output
102105
- store_artifacts:
103-
path: build/phpunit
106+
path: build/phpunit/html-coverage/
107+
destination: coverage/

CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Repository Maintainers
2+
* @launchdarkly/team-sdk

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
## LaunchDarkly overview
88

9-
[LaunchDarkly](https://www.launchdarkly.com) is a feature management platform that serves over 100 billion feature flags daily to help teams build better software, faster. [Get started](https://docs.launchdarkly.com/home/getting-started) using LaunchDarkly today!
9+
[LaunchDarkly](https://www.launchdarkly.com) is a feature management platform that serves trillions of feature flags daily to help teams build better software, faster. [Get started](https://docs.launchdarkly.com/home/getting-started) using LaunchDarkly today!
1010

1111
[![Twitter Follow](https://img.shields.io/twitter/follow/launchdarkly.svg?style=social&label=Follow&maxAge=2592000)](https://twitter.com/intent/follow?screen_name=launchdarkly)
1212

@@ -20,7 +20,7 @@ Refer to the [SDK reference guide](https://docs.launchdarkly.com/sdk/server-side
2020

2121
## Learn more
2222

23-
Check out our [documentation](http://docs.launchdarkly.com) for in-depth instructions on configuring and using LaunchDarkly. You can also head straight to the [complete reference guide for this SDK](https://docs.launchdarkly.com/sdk/server-side/php).
23+
Read our [documentation](http://docs.launchdarkly.com) for in-depth instructions on configuring and using LaunchDarkly. You can also head straight to the [complete reference guide for this SDK](https://docs.launchdarkly.com/sdk/server-side/php).
2424

2525
The authoritative description of all types, properties, and methods is in the [generated API documentation](http://launchdarkly.github.io/php-server-sdk/).
2626

src/LaunchDarkly/Impl/Util.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,12 @@ public static function httpErrorMessage(int $status, string $context, string $re
5959

6060
public static function logExceptionAtErrorLevel(LoggerInterface $logger, \Throwable $e, string $message): void
6161
{
62-
$logger->error($message . ': ' . $e->getMessage());
63-
$logger->debug("$e");
62+
$logger->error(
63+
$message . ': ' . $e->getMessage(),
64+
[
65+
'exception' => $e,
66+
]
67+
);
6468
}
6569

6670
public static function makeNullLogger(): LoggerInterface

src/LaunchDarkly/LDClient.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,14 @@ private function variationDetailInternal(string $key, LDContext|LDUser $contextO
247247
$result = $errorDetail(EvaluationReason::USER_NOT_SPECIFIED_ERROR);
248248
$sendEvent(new EvalResult($result, false), null);
249249
$error = $context->getError();
250-
$this->_logger->warning("Context was invalid for flag evaluation ($error); returning default value");
250+
251+
$this->_logger->warning(
252+
"Context was invalid for flag evaluation ($error); returning default value",
253+
[
254+
'flag' => $key,
255+
]
256+
);
257+
251258
return $result;
252259
}
253260

0 commit comments

Comments
 (0)