blob: e74c33dacdb7692e69592df647a67ac1f07e1dfa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# frozen_string_literal: true
module Gitlab
module BitbucketServerImport
module Loggable
def log_debug(messages)
logger.debug(log_data(messages))
end
def log_info(messages)
logger.info(log_data(messages))
end
def log_warn(messages)
logger.warn(log_data(messages))
end
def log_error(messages)
logger.error(log_data(messages))
end
private
def logger
Gitlab::BitbucketServerImport::Logger
end
def log_data(messages)
messages.merge(log_base_data)
end
def log_base_data
{
class: self.class.name,
project_id: project.id,
project_path: project.full_path
}
end
end
end
end
|