mirror of
https://github.com/bitwarden/server.git
synced 2025-04-13 17:18:14 -05:00
Only log errors with LaunchDarkly (#3298)
This commit is contained in:
parent
0b72eb8e45
commit
9db1007df6
@ -1,5 +1,6 @@
|
|||||||
using Bit.Core.Context;
|
using Bit.Core.Context;
|
||||||
using Bit.Core.Settings;
|
using Bit.Core.Settings;
|
||||||
|
using LaunchDarkly.Logging;
|
||||||
using LaunchDarkly.Sdk.Server;
|
using LaunchDarkly.Sdk.Server;
|
||||||
using LaunchDarkly.Sdk.Server.Integrations;
|
using LaunchDarkly.Sdk.Server.Integrations;
|
||||||
|
|
||||||
@ -14,6 +15,7 @@ public class LaunchDarklyFeatureService : IFeatureService, IDisposable
|
|||||||
IGlobalSettings globalSettings)
|
IGlobalSettings globalSettings)
|
||||||
{
|
{
|
||||||
var ldConfig = Configuration.Builder(globalSettings.LaunchDarkly?.SdkKey);
|
var ldConfig = Configuration.Builder(globalSettings.LaunchDarkly?.SdkKey);
|
||||||
|
ldConfig.Logging(Components.Logging().Level(LogLevel.Error));
|
||||||
|
|
||||||
if (string.IsNullOrEmpty(globalSettings.LaunchDarkly?.SdkKey))
|
if (string.IsNullOrEmpty(globalSettings.LaunchDarkly?.SdkKey))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user