Skip to content

Commit e79acfd

Browse files
committed
use logger group
1 parent f7bb917 commit e79acfd

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

analytics_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ func TestAnalytics(t *testing.T) {
4242
client.SetHeader("X-Environment-Key", EnvironmentAPIKey)
4343

4444
// Now let's create the processor
45-
4645
processor := NewAnalyticsProcessor(context.Background(), client, server.URL+"/api/v1/", &analyticsTimer, defaultLogger())
4746

4847
// and, track some features

client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func NewClient(apiKey string, options ...Option) *Client {
6262
}
6363

6464
if c.log == nil {
65-
c.log = defaultLogger()
65+
c.log = defaultLogger().WithGroup("flagsmith")
6666
}
6767
c.client = resty.
6868
New().
@@ -238,7 +238,7 @@ func (c *Client) GetEnvironmentFlags(ctx context.Context) (f Flags, err error) {
238238

239239
// GetIdentityFlags evaluates and returns the flags for an identity.
240240
//
241-
// Deprecated. Use GetFlags instead.
241+
// Deprecated: Use GetFlags instead.
242242
func (c *Client) GetIdentityFlags(ctx context.Context, identifier string, traits map[string]interface{}) (f Flags, err error) {
243243
return c.GetFlags(ctx, NewEvaluationContext(identifier, traits))
244244
}

0 commit comments

Comments
 (0)