Commit 589096dc authored by James Lopez's avatar James Lopez

refactor code

parent b868f90d
......@@ -9,7 +9,7 @@ module Gitlab
def log
return unless ::License.feature_available?(:ide)
::Gitlab::AppLogger.info({test: 1})
Rails.logger.info("Web editor usage - #{metric_info}")
end
......
......@@ -6,8 +6,7 @@ describe Gitlab::Metrics::MultiFileEditor do
subject { described_class.new(project, user, project.commit('b83d6e391c22777fca1ed3012fce84f633d7fed0')) }
describe '.record' do
describe 'metrics' do
describe '.log' do
it 'has the right log info' do
stub_licensed_features(ide: true)
......@@ -26,5 +25,4 @@ describe Gitlab::Metrics::MultiFileEditor do
subject.log
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