Use Gitlab::AppLogger instead of Rails.logger
This commit is contained in:
parent
33ec8f7e7c
commit
41712ebe0b
|
@ -15,7 +15,7 @@ module Projects
|
||||||
|
|
||||||
def initialize(project, old_disk_path, logger: nil)
|
def initialize(project, old_disk_path, logger: nil)
|
||||||
@project = project
|
@project = project
|
||||||
@logger = logger || Rails.logger
|
@logger = logger || Gitlab::AppLogger
|
||||||
@old_disk_path = old_disk_path
|
@old_disk_path = old_disk_path
|
||||||
@old_wiki_disk_path = "#{old_disk_path}.wiki"
|
@old_wiki_disk_path = "#{old_disk_path}.wiki"
|
||||||
@move_wiki = has_wiki?
|
@move_wiki = has_wiki?
|
||||||
|
|
|
@ -8,7 +8,7 @@ module Projects
|
||||||
def initialize(project, old_disk_path, logger: nil)
|
def initialize(project, old_disk_path, logger: nil)
|
||||||
@project = project
|
@project = project
|
||||||
@old_disk_path = old_disk_path
|
@old_disk_path = old_disk_path
|
||||||
@logger = logger || Rails.logger
|
@logger = logger || Gitlab::AppLogger
|
||||||
end
|
end
|
||||||
|
|
||||||
def execute
|
def execute
|
||||||
|
|
Loading…
Reference in New Issue