Move sample data logger to own module

This commit is contained in:
Maikel Linke
2019-01-08 14:27:25 +11:00
parent fae05ff713
commit bec9f5eb2e
2 changed files with 10 additions and 8 deletions

View File

@@ -0,0 +1,8 @@
module Logging
private
def log(message)
@logger ||= ActiveSupport::TaggedLogging.new(Logger.new(STDOUT))
@logger.tagged("openfoodnetwork:sample_data:load") { @logger.info(message) }
end
end