mirror of
https://ghfast.top/https://github.com/discourse/discourse-translator.git
synced 2026-07-17 11:56:50 +08:00
We would need to enable log shipping if we use info, so just use warn for now so we don't have to do that extra step.
11 lines
250 B
Ruby
11 lines
250 B
Ruby
# frozen_string_literal: true
|
|
|
|
module DiscourseTranslator
|
|
class VerboseLogger
|
|
def self.log(message)
|
|
if SiteSetting.discourse_translator_verbose_logs
|
|
Rails.logger.warn("DiscourseTranslator: #{message}")
|
|
end
|
|
end
|
|
end
|
|
end
|