summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/json_logger_spec.rb
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-12-06 20:49:31 +0100
committerKamil Trzciński <ayufan@ayufan.eu>2018-12-06 20:49:31 +0100
commit3560b11922fd180eea5cafd0e763e0e601c5c4ee (patch)
tree6d9c0c285ec80bf983f750937d9c888bfa0283b0 /spec/lib/gitlab/json_logger_spec.rb
parent39c1731a53d1014eab7c876d70632b1abf738712 (diff)
downloadgitlab-ce-3560b11922fd180eea5cafd0e763e0e601c5c4ee.tar.gz
Prefer to use correlation-id in logs
This changes `correlation_id` to be `correlation-id` when passed via jobs
Diffstat (limited to 'spec/lib/gitlab/json_logger_spec.rb')
-rw-r--r--spec/lib/gitlab/json_logger_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/gitlab/json_logger_spec.rb b/spec/lib/gitlab/json_logger_spec.rb
index cff7dd58c8c..706601fe98f 100644
--- a/spec/lib/gitlab/json_logger_spec.rb
+++ b/spec/lib/gitlab/json_logger_spec.rb
@@ -18,7 +18,7 @@ describe Gitlab::JsonLogger do
expect(data['severity']).to eq('INFO')
expect(data['time']).to eq(now.utc.iso8601(3))
expect(data['message']).to eq('Hello world')
- expect(data['correlation_id']).to eq('new-correlation-id')
+ expect(data['correlation-id']).to eq('new-correlation-id')
end
it 'formats hashes' do
@@ -29,7 +29,7 @@ describe Gitlab::JsonLogger do
expect(data['time']).to eq(now.utc.iso8601(3))
expect(data['hello']).to eq(1)
expect(data['message']).to be_nil
- expect(data['correlation_id']).to eq('new-correlation-id')
+ expect(data['correlation-id']).to eq('new-correlation-id')
end
end
end