Commit 3c433e59 authored by Catalin Irimie's avatar Catalin Irimie

Update grape lograge to return ints when passed

parent e5aeb0be
...@@ -42,7 +42,7 @@ module Gitlab ...@@ -42,7 +42,7 @@ module Gitlab
when String when String
encode_utf8(data) encode_utf8(data)
when Integer when Integer
utf8_encode_values(data.to_s) data
end end
end end
end end
......
...@@ -46,7 +46,7 @@ RSpec.describe Gitlab::GrapeLogging::Formatters::LogrageWithTimestamp do ...@@ -46,7 +46,7 @@ RSpec.describe Gitlab::GrapeLogging::Formatters::LogrageWithTimestamp do
expect(params).to eq([ expect(params).to eq([
{ 'key' => 'description', 'value' => '[FILTERED]' }, { 'key' => 'description', 'value' => '[FILTERED]' },
{ 'key' => 'name', 'value' => 'gitlab test' }, { 'key' => 'name', 'value' => 'gitlab test' },
{ 'key' => 'int', 'value' => '42' } { 'key' => 'int', 'value' => 42 }
]) ])
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment