File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ func (w *exposureWriter) flush() {
200200
201201 // Send to agent
202202 if err := w .sendToAgent (payload ); err != nil {
203- log .Error ("openfeature: failed to send exposure events: %v" , err )
203+ log .Error ("openfeature: failed to send exposure events: %v" , err . Error () )
204204 } else {
205205 log .Debug ("openfeature: successfully sent %d exposure events" , len (events ))
206206 }
Original file line number Diff line number Diff line change @@ -38,10 +38,10 @@ func newExposureHook(writer *exposureWriter) *exposureHook {
3838// It extracts the necessary information from the evaluation details and sends
3939// an exposure event to the writer if doLog is true.
4040func (h * exposureHook ) After (
41- ctx context.Context ,
41+ _ context.Context ,
4242 hookContext of.HookContext ,
4343 flagEvaluationDetails of.InterfaceEvaluationDetails ,
44- hookHints of.HookHints ,
44+ _ of.HookHints ,
4545) error {
4646 // Check if we should log this exposure
4747 if ! h .shouldLog (flagEvaluationDetails .FlagMetadata ) {
@@ -91,8 +91,8 @@ func (h *exposureHook) After(
9191 },
9292 Subject : exposureSubject {
9393 ID : targetingKey ,
94- Type : "" , // Type is optional
95- Attributes : subjectAttrs , // Flattened, primitive-only attributes
94+ Type : "" , // Type is optional
95+ Attributes : subjectAttrs , // Flattened, primitive-only attributes
9696 },
9797 }
9898
You can’t perform that action at this time.
0 commit comments