Skip to content

Commit

Permalink
Less change to log subscriber
Browse files Browse the repository at this point in the history
thing was being instrumented before even as nil
  • Loading branch information
jnunemaker committed Mar 20, 2023
1 parent 4921232 commit bb82f48
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/flipper/instrumentation/log_subscriber.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,8 @@ def feature_operation(event)

details = if event.payload.key?(:actors)
"actors=#{event.payload[:actors].inspect}"
elsif event.payload.key?(:thing)
"thing=#{event.payload[:thing].inspect}"
else
""
"thing=#{event.payload[:thing].inspect}"
end

details += " gate_name=#{gate_name}" unless gate_name.nil?
Expand Down

0 comments on commit bb82f48

Please sign in to comment.