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
when String
encode_utf8(data)
when Integer
utf8_encode_values(data.to_s)
data
end
end
end
......
......@@ -46,7 +46,7 @@ RSpec.describe Gitlab::GrapeLogging::Formatters::LogrageWithTimestamp do
expect(params).to eq([
{ 'key' => 'description', 'value' => '[FILTERED]' },
{ 'key' => 'name', 'value' => 'gitlab test' },
{ 'key' => 'int', 'value' => '42' }
{ 'key' => 'int', 'value' => 42 }
])
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