Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-12-06 23:46:31 +0300
committerKamil Trzciński <ayufan@ayufan.eu>2018-12-06 23:46:31 +0300
commitebb5d9f4db3c2d5818f5efda1b09fcd1be7285e8 (patch)
tree5d51a48a32a92fdedf7b907a32caa172d1c0d923 /spec/lib/gitlab/json_logger_spec.rb
parent3560b11922fd180eea5cafd0e763e0e601c5c4ee (diff)
Revert "Prefer to use correlation-id in logs"
This reverts commit 3560b11922fd180eea5cafd0e763e0e601c5c4ee.
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 706601fe98f..cff7dd58c8c 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