mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-06-19 02:05:37 +08:00
13 lines
321 B
Ruby
Vendored
13 lines
321 B
Ruby
Vendored
# frozen_string_literal: true
|
|
|
|
module DiscourseAi
|
|
module Translation
|
|
class VerboseLogger
|
|
def self.log(message, opts = { level: :warn })
|
|
if SiteSetting.ai_translation_verbose_logs
|
|
Rails.logger.send(opts[:level], "DiscourseAi::Translation: #{message}")
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|